From b536247b1ce5de640eec81dddac47802cd074363 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Wed, 8 Apr 2015 19:37:39 +0100 Subject: Extend the DWARF library to support .debug_info section. Change-Id: I9916abd8db227e7a73a3311294e675be5222a709 --- compiler/cfi_test.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'compiler/cfi_test.h') diff --git a/compiler/cfi_test.h b/compiler/cfi_test.h index f550395dad..918179290b 100644 --- a/compiler/cfi_test.h +++ b/compiler/cfi_test.h @@ -22,8 +22,8 @@ #include #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); -- cgit v1.2.3-59-g8ed1b