[Lldb-commits] [lldb] 7ac0ff5 - [lldb] Make test for D153043 independent of external symbols

Jaroslav Sevcik via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 19 22:29:17 PDT 2023


Author: Jaroslav Sevcik
Date: 2023-06-20T07:28:30+02:00
New Revision: 7ac0ff562ab8b0c2134b17333f4efa6fbbeab48c

URL: https://github.com/llvm/llvm-project/commit/7ac0ff562ab8b0c2134b17333f4efa6fbbeab48c
DIFF: https://github.com/llvm/llvm-project/commit/7ac0ff562ab8b0c2134b17333f4efa6fbbeab48c.diff

LOG: [lldb] Make test for D153043 independent of external symbols

This removes dependence on the libc abort function.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/lldb/test/Shell/Unwind/Inputs/eh-frame-dwarf-unwind-abort.s b/lldb/test/Shell/Unwind/Inputs/eh-frame-dwarf-unwind-abort.s
index 660bb14395e8d..95099ce42d3f5 100644
--- a/lldb/test/Shell/Unwind/Inputs/eh-frame-dwarf-unwind-abort.s
+++ b/lldb/test/Shell/Unwind/Inputs/eh-frame-dwarf-unwind-abort.s
@@ -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:


        


More information about the lldb-commits mailing list