[Lldb-commits] [PATCH] D118473: [lldb] [Commands] Implement "thread siginfo"

Jim Ingham via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 1 09:59:49 PST 2022


jingham added a comment.

I think it would help readability if you put the thread ID for the signinfo before printing the siginfo value, otherwise if I list multiple threads (or use "all") I have to count instances to figure out which thread goes with which siginfo.

Otherwise this looks fine.



================
Comment at: lldb/source/Commands/CommandObjectThread.cpp:1355
+
+    Stream &strm = result.GetOutputStream();
+    ValueObjectSP exception_object_sp = thread_sp->GetSiginfoValue();
----------------
The CommandObjectIterateOverThreads class doesn't itself print which thread the output of each HandleOneThread is for, so if I did:

(lldb) thread siginfo all

Then I would just get a bunch of undifferentiated siginfo's and wouldn't have a way to figure out which thread went with which output.  I think it would help to repeat the thread name before the siginfo output.


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

https://reviews.llvm.org/D118473



More information about the lldb-commits mailing list