X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/39236c6e673c41db228275375ab7fdb0f837b292..d26ffc64f583ab2d29df48f13518685602bc8832:/tools/lldbmacros/Makefile diff --git a/tools/lldbmacros/Makefile b/tools/lldbmacros/Makefile index 2e7b3aeed..30383a3db 100644 --- a/tools/lldbmacros/Makefile +++ b/tools/lldbmacros/Makefile @@ -3,7 +3,6 @@ export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir - include $(MakeInc_cmd) include $(MakeInc_def) @@ -12,9 +11,19 @@ include $(MakeInc_def) do_config_all:: lldbmacros_install LLDBMACROS_SOURCE:=$(SRCROOT)/tools/lldbmacros/ -LLDBMACROS_DEST:=$(OBJPATH)/$(DSYMKERNELSYSDIR)/$(DSYMLLDBMACROSDIR)/lldbmacros/ +LLDBMACROS_BOOTSTRAP_DEST:=$(OBJPATH)/$(KERNEL_FILE_NAME).dSYM/$(DSYMLLDBMACROSDIR) +LLDBMACROS_DEST:=$(LLDBMACROS_BOOTSTRAP_DEST)/lldbmacros/ +LLDBMACROS_USERDEBUG_FILES= + +LLDBMACROS_USERDEBUG_FILES:= \ + usertaskdebugging/__init__.py \ + usertaskdebugging/gdbserver.py \ + usertaskdebugging/interface.py \ + usertaskdebugging/rsprotocol.py \ + usertaskdebugging/target.py \ + usertaskdebugging/userprocess.py -LLDBMACROS_PYTHON_FILES = \ +LLDBMACROS_PYTHON_FILES = $(LLDBMACROS_USERDEBUG_FILES) \ core/standard.py \ core/cvalue.py \ core/__init__.py \ @@ -26,13 +35,22 @@ LLDBMACROS_PYTHON_FILES = \ core/xnu_lldb_init.py \ plugins/__init__.py \ plugins/zprint_perf_log.py \ + atm.py \ + bank.py \ + kevent.py \ xnu.py \ xnudefines.py \ + ktrace.py \ + macho.py \ mbufdefines.py \ netdefines.py \ + ntstat.py \ routedefines.py \ ipc.py \ + ipcimportancedetail.py \ + kcdata.py \ scheduler.py \ + structanalyze.py \ pmap.py \ memory.py \ mbufs.py \ @@ -44,22 +62,36 @@ LLDBMACROS_PYTHON_FILES = \ userspace.py \ pci.py \ misc.py \ - apic.py + apic.py \ + kasan.py \ + kauth.py \ + usertaskgdbserver.py \ + waitq.py \ + pgtrace.py \ + xnutriage.py \ + zonetriage.py + +ifneq ($(PLATFORM),MacOSX) + LLDBMACROS_PYTHON_FILES+= \ + plugins/iosspeedtracer.py \ + plugins/iosspeedtracer.sh +endif + INSTALL_LLDBMACROS_PYTHON_FILES=$(addprefix $(LLDBMACROS_DEST), $(LLDBMACROS_PYTHON_FILES)) -$(INSTALL_LLDBMACROS_PYTHON_FILES): $(LLDBMACROS_DEST)% : $(LLDBMACROS_SOURCE)% +$(INSTALL_LLDBMACROS_PYTHON_FILES): $(LLDBMACROS_DEST)% : $(LLDBMACROS_SOURCE)% $(_v)$(MKDIR) $(dir $@) $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout) $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@ $(_v)$(TOUCH) $(LLDBMACROS_DEST) -$(LLDBMACROS_DEST)/../mach_kernel.py: $(LLDBMACROS_SOURCE)/core/xnu_lldb_init.py +$(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME): $(LLDBMACROS_SOURCE)/core/xnu_lldb_init.py $(_v)$(MKDIR) $(dir $@) $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout) $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@ -lldbmacros_install: $(INSTALL_LLDBMACROS_PYTHON_FILES) $(LLDBMACROS_DEST)/../mach_kernel.py +lldbmacros_install: $(INSTALL_LLDBMACROS_PYTHON_FILES) $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME) include $(MakeInc_rule) include $(MakeInc_dir)