Debian Codegraph @

compiler-rt/test/orc/TestCases/Darwin/x86-64/MachO_gdb_jit_debuginfo_register.S

raw
1 // REQUIRES: system-darwin && asserts
2 // RUN: %clang -c -o %t %s
3 // RUN: %llvm_jitlink -debug-only=orc -debugger-support %t 2>&1 \
4 // RUN: | FileCheck %s
5 //
6 // Check that presence of a "__DWARF" section triggers the
7 // GDBJITDebugInfoRegistrationPlugin.
8 //
9 // This test requires a darwin host (despite being a noexec test) because we use
10 // the input object's mangling to determine the mangling of the registration
11 // function to use. Since the input is MachO, the mangling will only line up
12 // properly on Darwin. (See https://llvm.org/PR52503 for a proposed longer term
13 // solution).
14 //
15 // CHECK: Adding debug object to GDB JIT interface
16
17 .section __TEXT,__text,regular,pure_instructions
18 .globl _main
19 .p2align 4, 0x90
20 _main:
21 xorl %eax, %eax
22 retq
23
24 .section __DWARF,__debug_str,regular,debug
25 Linfo_string:
26 .asciz "test dwarf string"
27
28 .subsections_via_symbols