[Lldb-commits] [lldb] [lldb] Step over non-lldb breakpoints (PR #174348)
Duncan McBain via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 30 07:28:31 PST 2026
================
@@ -63,8 +62,12 @@ def test(self):
self.runCmd("bt")
self.runCmd("ta v global")
+ # Some platforms might exit when seeing the trap instruction
----------------
DuncanMcBain wrote:
Just double checked, this actually happens on my development (x86_64) laptop! I think it's because the only option for a trap on this platform is 0xcc or something, I haven't looked in great detail, but ultimately without this line, the test fails on x86.
OK I did a quick check on Compiler Explorer - `__builtin_debugtrap()` is `int3`, but `__builtin_trap()` is `ud2`, which simply aborts the process. I don't think there's anything that lldb should be doing differently here, I think it's ok to say that some platforms might have exited here but we should check for correctness if they're still running.
https://github.com/llvm/llvm-project/pull/174348
More information about the lldb-commits
mailing list