]> git.saurik.com Git - apple/xnu.git/blobdiff - tools/lldbmacros/xnu.py
xnu-3789.60.24.tar.gz
[apple/xnu.git] / tools / lldbmacros / xnu.py
index f93fd476d4b255cf6139bd00a051e6906d91079b..b8bcc6bede8b5d705bd1cd07dafc9cd90cfa4d50 100644 (file)
@@ -85,7 +85,7 @@ def lldb_command(cmd_name, option_string = ''):
     def _cmd(obj):
         def _internal_command_function(debugger, command, result, internal_dict):
             global config, lldb_run_command_state
-            stream = CommandOutput(result)
+            stream = CommandOutput(cmd_name, result)
             # need to avoid printing on stdout if called from lldb_run_command.
             if 'active' in lldb_run_command_state and lldb_run_command_state['active']:
                 debuglog('Running %s from lldb_run_command' % command)
@@ -616,7 +616,7 @@ def ShowPanicLog(cmd_args=None, cmd_options={}):
         if p_char == '\n':
             if not in_binary_data_region:
                 num_print_bytes += 1
-                print out_str
+                print out_str[:-1]
             if (out_str.find("Data: BEGIN>>") >= 0):
                 in_binary_data_region = True
                 pos += binary_data_bytes_to_skip - 1