diff options
author | David Srbecky <dsrbecky@google.com> | 2015-04-08 19:37:39 +0100 |
---|---|---|
committer | David Srbecky <dsrbecky@google.com> | 2015-04-09 23:55:05 +0100 |
commit | b536247b1ce5de640eec81dddac47802cd074363 (patch) | |
tree | 22568fd953bfc92deb3378c3d5b31fb04b9948cc /compiler/cfi_test.h | |
parent | 8b3c1b6526ff6b44dd724826b8e9e6d0a2067f6e (diff) | |
download | art-b536247b1ce5de640eec81dddac47802cd074363.zip art-b536247b1ce5de640eec81dddac47802cd074363.tar.gz art-b536247b1ce5de640eec81dddac47802cd074363.tar.bz2 |
Extend the DWARF library to support .debug_info section.
Change-Id: I9916abd8db227e7a73a3311294e675be5222a709
Diffstat (limited to 'compiler/cfi_test.h')
-rw-r--r-- | compiler/cfi_test.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/compiler/cfi_test.h b/compiler/cfi_test.h index f550395..9181792 100644 --- a/compiler/cfi_test.h +++ b/compiler/cfi_test.h @@ -22,8 +22,8 @@ #include <sstream> #include "arch/instruction_set.h" -#include "dwarf/debug_frame_writer.h" #include "dwarf/dwarf_test.h" +#include "dwarf/headers.h" #include "disassembler/disassembler.h" #include "gtest/gtest.h" @@ -43,9 +43,10 @@ class CFITest : public dwarf::DwarfTest { HexDump(f, actual_cfi); fprintf(f, "\n};\n"); // Pretty-print CFI opcodes. - dwarf::DebugFrameWriter<> eh_frame(&eh_frame_data_, false); - eh_frame.WriteCIE(dwarf::Reg(8), {}); - eh_frame.WriteFDE(0, actual_asm.size(), actual_cfi.data(), actual_cfi.size()); + constexpr bool is64bit = false; + dwarf::DebugFrameOpCodeWriter<> initial_opcodes; + dwarf::WriteEhFrameCIE(is64bit, dwarf::Reg(8), initial_opcodes, &eh_frame_data_); + dwarf::WriteEhFrameFDE(is64bit, 0, 0, actual_asm.size(), &actual_cfi, &eh_frame_data_); ReformatCfi(Objdump(false, "-W"), &lines); // Pretty-print assembly. auto* opts = new DisassemblerOptions(false, actual_asm.data(), true); |