Author: labath Date: Tue May 7 09:13:05 2019 New Revision: 360168 URL: http://llvm.org/viewvc/llvm-project?rev=360168&view=rev Log: Make eh-frame-dwarf-unwind.test run on non-linux platforms
This was meant to be a part of r360158, but I forgot to squash the commits before pushing. Added: lldb/trunk/lit/Unwind/Inputs/call-asm.c Modified: lldb/trunk/lit/Unwind/Inputs/eh-frame-dwarf-unwind.s lldb/trunk/lit/Unwind/eh-frame-dwarf-unwind.test Added: lldb/trunk/lit/Unwind/Inputs/call-asm.c URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Unwind/Inputs/call-asm.c?rev=360168&view=auto ============================================================================== --- lldb/trunk/lit/Unwind/Inputs/call-asm.c (added) +++ lldb/trunk/lit/Unwind/Inputs/call-asm.c Tue May 7 09:13:05 2019 @@ -0,0 +1,3 @@ +int asm_main() asm("asm_main"); + +int main() { return asm_main(); } Modified: lldb/trunk/lit/Unwind/Inputs/eh-frame-dwarf-unwind.s URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Unwind/Inputs/eh-frame-dwarf-unwind.s?rev=360168&r1=360167&r2=360168&view=diff ============================================================================== --- lldb/trunk/lit/Unwind/Inputs/eh-frame-dwarf-unwind.s (original) +++ lldb/trunk/lit/Unwind/Inputs/eh-frame-dwarf-unwind.s Tue May 7 09:13:05 2019 @@ -1,18 +1,13 @@ .text .globl bar - .type bar, @function bar: -.LFB0: .cfi_startproc leal (%edi, %edi), %eax ret .cfi_endproc -.LFE0: - .size bar, .-bar + .globl foo - .type foo, @function foo: -.LFB1: .cfi_startproc .cfi_escape 0x16, 0x10, 0x06, 0x38, 0x1c, 0x06, 0x08, 0x47, 0x1c call bar @@ -21,12 +16,9 @@ foo: subq $0x47, %rdi jmp *%rdi # Return .cfi_endproc -.LFE1: - .size foo, .-foo - .globl main - .type main, @function -main: -.LFB2: + + .globl asm_main +asm_main: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 @@ -45,5 +37,3 @@ main: .cfi_def_cfa 7, 8 ret .cfi_endproc -.LFE2: - .size main, .-main Modified: lldb/trunk/lit/Unwind/eh-frame-dwarf-unwind.test URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Unwind/eh-frame-dwarf-unwind.test?rev=360168&r1=360167&r2=360168&view=diff ============================================================================== --- lldb/trunk/lit/Unwind/eh-frame-dwarf-unwind.test (original) +++ lldb/trunk/lit/Unwind/eh-frame-dwarf-unwind.test Tue May 7 09:13:05 2019 @@ -1,9 +1,9 @@ # Test handing of dwarf expressions specifying the location of registers, if # those expressions refer to the frame's CFA value. -# REQUIRES: target-x86_64, system-linux, native +# REQUIRES: target-x86_64, native -# RUN: %clang %p/Inputs/eh-frame-dwarf-unwind.s -o %t +# RUN: %clang %p/Inputs/call-asm.c %p/Inputs/eh-frame-dwarf-unwind.s -o %t # RUN: %lldb %t -s %s -o exit | FileCheck %s breakpoint set -n bar @@ -15,7 +15,7 @@ process launch thread backtrace # CHECK: frame #0: {{.*}}`bar # CHECK: frame #1: {{.*}}`foo + 5 -# CHECK: frame #2: {{.*}}`main + 19 +# CHECK: frame #2: {{.*}}`asm_main + 22 target modules show-unwind -n foo # CHECK: eh_frame UnwindPlan: _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits