]> git.saurik.com Git - apple/xnu.git/blobdiff - tools/lldbmacros/core/xnu_lldb_init.py
xnu-4570.1.46.tar.gz
[apple/xnu.git] / tools / lldbmacros / core / xnu_lldb_init.py
old mode 100644 (file)
new mode 100755 (executable)
index 41dd202..c7f49ea
@@ -77,6 +77,7 @@ def __lldb_init_module(debugger, internal_dict):
     whitelist_trap_cmd = "settings set target.trap-handler-names %s %s" % (' '.join(intel_whitelist), ' '.join(arm_whitelist))
     xnu_debug_path = base_dir_name + "/lldbmacros/xnu.py"
     xnu_load_cmd = "command script import \"%s\"" % xnu_debug_path
+    disable_optimization_warnings_cmd = "settings set target.process.optimization-warnings false"
 
     source_map_cmd = ""
     try:
@@ -97,6 +98,8 @@ def __lldb_init_module(debugger, internal_dict):
         debugger.HandleCommand(whitelist_trap_cmd)
         print xnu_load_cmd
         debugger.HandleCommand(xnu_load_cmd)
+        print disable_optimization_warnings_cmd
+        debugger.HandleCommand(disable_optimization_warnings_cmd)
         if source_map_cmd:
             print source_map_cmd
             debugger.HandleCommand(source_map_cmd)