================
@@ -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
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to