[Lldb-commits] [PATCH] D158785: [lldb] Add a "thread extrainfo" LC_NOTE for Mach-O corefiles, to store the thread IDs of the threads
    Alex Langford via Phabricator via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Fri Aug 25 14:24:32 PDT 2023
    
    
  
bulbazord added a comment.
The idea itself looks good to me. It would be nice if we could maintain a schema for this format in documentation or elsewhere so future code spelunkers have an idea of what the parsing and saving code are doing while they read it.
================
Comment at: lldb/test/API/macosx/corefile-exception-reason/TestCorefileExceptionReason.py:54-57
+        while i < process.GetNumThreads():
+            t = process.GetThreadAtIndex(i)
+            self.assertEqual(t.GetThreadID(), live_tids[i])
+            i = i + 1
----------------
nit
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D158785/new/
https://reviews.llvm.org/D158785
    
    
More information about the lldb-commits
mailing list