[Lldb-commits] [PATCH] D134037: [lldb] Fix CommandInterpreter::DidProcessStopAbnormally() with multiple threads

David Spickett via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 23 05:20:20 PDT 2022


DavidSpickett added inline comments.


================
Comment at: lldb/source/Interpreter/CommandInterpreter.cpp:2443
     StopInfoSP stop_info = thread_sp->GetStopInfo();
     if (!stop_info)
+      continue;
----------------
Please add a comment explaining why we walk all the threads.

(though in hindsight it does seem the obvious thing to do)


================
Comment at: lldb/test/Shell/Driver/CommandOnCrashMultiThreaded.test:1
+# XFAIL: system-windows
+# REQUIRES: native && (target-x86 || target-x86_64)
----------------
Isn't this fixing an issue that you saw on Windows as well?


================
Comment at: lldb/test/Shell/Driver/Inputs/CommandOnCrashMultiThreaded.cpp:5
+  asm volatile(
+    "int3\n\t"
+  );
----------------
This is an x86 breakpoint, right? Shame there is no `__builtin_break` (well, msvc has one apparently but no help for this).

I might add the AArch64 and Arm equivalent if I have some spare time.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D134037



More information about the lldb-commits mailing list