Skip to content

Commit 1888916

Browse files
authored
Add func call so we don't instruction-step into the builtin_trap (#2332)
The way this test is structured right now, I set a breakpoint on the instruction before the __builtin_trap. It hits the breakpoint, disables the breakpoint, and instruction steps. This hits the builtin_trap instruction which debugserver (on arm64) now advances to the next instruction and reports that address to lldb. lldb doesn't recognize this as a proper response to the instruction step and continues executing until the next trap, and the test fails. (cherry picked from commit 885eae9)
1 parent 6a76fcc commit 1888916

File tree

1 file changed

+1
-0
lines changed
  • lldb/test/API/macosx/builtin-debugtrap

1 file changed

+1
-0
lines changed

lldb/test/API/macosx/builtin-debugtrap/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ int global = 0;
33
int main()
44
{
55
global = 5; // Set a breakpoint here
6+
puts("");
67
__builtin_debugtrap();
78
global = 10;
89
__builtin_trap();

0 commit comments

Comments
 (0)