21 lines · plain
1# Test restoring of register values.2 3# REQUIRES: target-x86_64, system-linux, native4 5# RUN: %clang_host %p/Inputs/call-asm.c %p/Inputs/eh-frame-dwarf-unwind-abort.s -o %t6# RUN: %lldb %t -s %s -o exit | FileCheck %s7 8process launch9# CHECK: stop reason = signal SIGTRAP10 11thread backtrace12# CHECK: frame #0: {{.*}}`asm_main + 1913# CHECK: frame #1: {{.*}}`main + {{.*}}14 15target modules show-unwind -n asm_main16# CHECK: eh_frame UnwindPlan:17# CHECK: row[0]: 0: CFA=rsp +8 => rip=[CFA-8]18# CHECK: row[1]: 10: CFA=rsp+16 => rbp=[CFA-16] rip=[CFA-8]19# CHECK: row[2]: 13: CFA=rbp+16 => rbp=[CFA-16] rip=[CFA-8]20# CHECK: row[3]: 18: CFA=rsp +8 => rip=[CFA-8]21