diff options
author | Eli Bendersky <eliben@google.com> | 2013-02-21 22:53:19 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2013-02-21 22:53:19 +0000 |
commit | 7bf3d6a0438485df61c438f26cfbaef2f8d8a3c4 (patch) | |
tree | 624aeeb01fc813834ac4db1984520d63c969261a /test/DebugInfo | |
parent | 0711d46a72580a943d60a770776a22aeb494e66c (diff) | |
download | external_llvm-7bf3d6a0438485df61c438f26cfbaef2f8d8a3c4.zip external_llvm-7bf3d6a0438485df61c438f26cfbaef2f8d8a3c4.tar.gz external_llvm-7bf3d6a0438485df61c438f26cfbaef2f8d8a3c4.tar.bz2 |
Previously, parsing capability of the .debug_frame section was added
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
Diffstat (limited to 'test/DebugInfo')
-rw-r--r-- | test/DebugInfo/dwarfdump-debug-frame-simple.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/DebugInfo/dwarfdump-debug-frame-simple.test b/test/DebugInfo/dwarfdump-debug-frame-simple.test index 595dd37..c2427d8 100644 --- a/test/DebugInfo/dwarfdump-debug-frame-simple.test +++ b/test/DebugInfo/dwarfdump-debug-frame-simple.test @@ -6,9 +6,22 @@ ; 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 |