[lldb] Make test for D153043 independent of external symbols
authorJaroslav Sevcik <jarin@google.com>
Tue, 20 Jun 2023 05:19:37 +0000 (07:19 +0200)
committerJaroslav Sevcik <jarin@google.com>
Tue, 20 Jun 2023 05:28:30 +0000 (07:28 +0200)
This removes dependence on the libc abort function.

lldb/test/Shell/Unwind/Inputs/eh-frame-dwarf-unwind-abort.s

index 660bb14..95099ce 100644 (file)
@@ -10,7 +10,7 @@ asm_main:
         .cfi_offset 6, -16
         movq    %rsp, %rbp
         .cfi_def_cfa_register 6
-        callq   abort
+        callq   abort_function
 .L:
         .cfi_def_cfa 7, 8
         .cfi_restore 6
@@ -18,6 +18,12 @@ asm_main:
         ud2
         .cfi_endproc
 
+        .globl abort_function
+abort_function:
+        .cfi_startproc
+        ud2
+        .cfi_endproc
+
        .data
        .globl  g_hard_abort
 g_hard_abort: