From 99d56d5f78a4ee0d0dcda6f9b168f50c53334408 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sat, 23 Oct 2010 15:36:36 +0000 Subject: [PATCH] Remove a few no longer needed debug traces, and add a TODO note regarding gcc4's eh_frame format. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39072 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/debugger/dwarf/DwarfFile.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/apps/debugger/dwarf/DwarfFile.cpp b/src/apps/debugger/dwarf/DwarfFile.cpp index 2a0a8fc4dc..8103e76af8 100644 --- a/src/apps/debugger/dwarf/DwarfFile.cpp +++ b/src/apps/debugger/dwarf/DwarfFile.cpp @@ -439,16 +439,20 @@ DwarfFile::UnwindCallFrame(CompilationUnit* unit, // CIE ID/CIE pointer uint64 cieID = dwarf64 ? dataReader.Read(0) : dataReader.Read(0); + + // TODO: gcc4.4+ only specifies an eh_frame by default on + // Haiku, and its format differs from the 2.x format + // we currently handle. Support for detecting and parsing + // the appropriate format needs to be added, though this can + // currently be worked around using -fno-dwarf2-cfi-asm if (fUsingEHFrameSection ? cieID == 0 : (dwarf64 ? cieID == 0xffffffffffffffffULL : cieID == 0xffffffff)) { // this is a CIE -- skip it - TRACE_CFI("Skipping CIE: %Lx\n", cieID); previousCIE = entryOffset; } else { - TRACE_CFI("Found FDE\n"); // this is a FDE target_addr_t initialLocation = dataReader.ReadAddress(0); target_size_t addressRange = dataReader.ReadAddress(0);