[Lldb-commits] [PATCH] D157852: [lldb/crashlog] Skip non-crashed threads in batch mode

Med Ismail Bennani via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 18 12:51:32 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG9a44eedb842d: [lldb/crashlog] Skip non-crashed threads in batch mode (authored by mib).

Changed prior to commit:
  https://reviews.llvm.org/D157852?vs=549855&id=551615#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157852/new/

https://reviews.llvm.org/D157852

Files:
  lldb/examples/python/crashlog.py


Index: lldb/examples/python/crashlog.py
===================================================================
--- lldb/examples/python/crashlog.py
+++ lldb/examples/python/crashlog.py
@@ -949,6 +949,7 @@
                                 self.thread.reason += (
                                     " (%s)" % self.crashlog.thread_exception_data
                                 )
+                            self.thread.crashed = True
                         if self.app_specific_backtrace:
                             self.crashlog.backtraces.append(self.thread)
                         else:
@@ -1437,6 +1438,10 @@
             print()
 
     for thread in crash_log.threads:
+        if options.crashed_only and not (
+            thread.crashed or thread.app_specific_backtrace
+        ):
+            continue
         thread.dump_symbolicated(crash_log, options)
         print()
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157852.551615.patch
Type: text/x-patch
Size: 890 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230818/7c63c750/attachment.bin>


More information about the lldb-commits mailing list