xref: /llvm-project/lldb/test/Shell/Unwind/Inputs/eh-frame-dwarf-unwind-abort.s (revision 7ac0ff562ab8b0c2134b17333f4efa6fbbeab48c)
1        .text
2        .globl  asm_main
3asm_main:
4        .cfi_startproc
5        cmpb $0x0, g_hard_abort(%rip)
6        jne .L
7
8        pushq   %rbp
9        .cfi_def_cfa_offset 16
10        .cfi_offset 6, -16
11        movq    %rsp, %rbp
12        .cfi_def_cfa_register 6
13        callq   abort_function
14.L:
15        .cfi_def_cfa 7, 8
16        .cfi_restore 6
17        int3
18        ud2
19        .cfi_endproc
20
21        .globl abort_function
22abort_function:
23        .cfi_startproc
24        ud2
25        .cfi_endproc
26
27	.data
28	.globl  g_hard_abort
29g_hard_abort:
30	.byte   1
31