[Lldb-commits] [PATCH] D119155: [lldb] Print message after loading 'crashlog' command

Dave Lee via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 7 09:35:48 PST 2022


kastiglione created this revision.
kastiglione added a reviewer: JDevlieghere.
kastiglione requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

Previously, importing `crashlog` resulted in a message being printed. The
message was about other commands (those in heap.py), not `crashlog`. Some users
may see no output and think `crashlog` wasn't successfully loaded. This ensures
users see that `crashlog` is loaded.

rdar://88283132


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119155

Files:
  lldb/examples/python/crashlog.py


Index: lldb/examples/python/crashlog.py
===================================================================
--- lldb/examples/python/crashlog.py
+++ lldb/examples/python/crashlog.py
@@ -1247,3 +1247,5 @@
         'command script add -c lldb.macosx.crashlog.Symbolicate crashlog')
     debugger.HandleCommand(
         'command script add -f lldb.macosx.crashlog.save_crashlog save_crashlog')
+    print('"crashlog" and "save_crashlog" commands have been installed, use '
+          'the --help" options on these commands for detailed help.')


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119155.406505.patch
Type: text/x-patch
Size: 542 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220207/6c6b4a96/attachment.bin>


More information about the lldb-commits mailing list