mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
7bf3d6a043
to lib/DebugInfo, with dumping in llvm-dwarfdump. This patch adds initial ability to parse and dump CFA instructions contained in entries. To keep it manageable, the patch omits some more advanced capabilities (accounted in TODOs): * Parsing of instructions with BLOCK arguments (expression lists) * Dumping of actual instruction arguments (currently only names are dumped). This is quite tricky since the dumper has to effectively "interpret" the instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175820 91177308-0d34-0410-b5e6-96231b3b80d8
29 lines
876 B
Plaintext
29 lines
876 B
Plaintext
; RUN: llvm-dwarfdump %p/Inputs/dwarfdump-test-32bit.elf.o -debug-dump=frames | FileCheck %s -check-prefix FRAMES
|
|
; Note: the input file was generated from Inputs/dwarfdump-test-32bit.elf.c
|
|
|
|
; FRAMES: .debug_frame
|
|
; FRAMES-NOT: .eh_frame
|
|
|
|
; FRAMES: 00000000 00000010 ffffffff CIE
|
|
; FRAMES: Version: 1
|
|
; FRAMES: DW_CFA_def_cfa
|
|
; FRAMES-NEXT: DW_CFA_offset
|
|
; FRAMES-NEXT: DW_CFA_nop
|
|
; FRAMES-NEXT: DW_CFA_nop
|
|
|
|
; FRAMES: 00000014 00000010 00000000 FDE cie=00000000 pc=00000000...00000022
|
|
; FRAMES: DW_CFA_advance_loc
|
|
; FRAMES-NEXT: DW_CFA_def_cfa_offset
|
|
; FRAMES-NEXT: DW_CFA_nop
|
|
|
|
; FRAMES: 00000028 00000014 00000000 FDE cie=00000000 pc=00000030...00000080
|
|
; FRAMES: DW_CFA_advance_loc
|
|
; FRAMES-NEXT: DW_CFA_def_cfa_offset
|
|
; FRAMES-NEXT: DW_CFA_offset
|
|
; FRAMES-NEXT: DW_CFA_advance_loc
|
|
; FRAMES-NEXT: DW_CFA_def_cfa_register
|
|
|
|
; FRAMES-NOT: CIE
|
|
; FRAMES-NOT: FDE
|
|
|