Skip to content

Commit d8843fe

Browse files
committed
Update assembly a bit.
1 parent 508b9cb commit d8843fe

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

lldb/test/API/macosx/unwind-frameless-faulted/interrupt-and-trap-funcs.s

+2-11
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ _trap:
5151
// The pc value when we were interrupted is in x23
5252
.cfi_escape DW_CFA_register, ehframe_pc, ehframe_x23
5353

54-
// standard prologue save of fp & lr so we can call puts()
54+
// standard prologue save of fp & lr so we can call
55+
// break_to_debugger()
5556
sub sp, sp, #32
5657
stp x29, x30, [sp, #16]
5758
add x29, sp, #16
@@ -76,17 +77,7 @@ _trap:
7677
_break_to_debugger:
7778
.cfi_startproc
7879

79-
// standard prologue save of fp & lr so we can call puts()
80-
sub sp, sp, #32
81-
stp x29, x30, [sp, #16]
82-
add x29, sp, #16
83-
.cfi_def_cfa w29, 16
84-
.cfi_offset w30, -8
85-
.cfi_offset w29, -16
86-
8780
brk #0xf000 ;; __builtin_debugtrap aarch64 instruction
8881

89-
ldp x29, x30, [sp, #16]
90-
add sp, sp, #32
9182
ret
9283
.cfi_endproc

0 commit comments

Comments
 (0)