[Lldb-commits] [lldb] r205771 - Accept DWARF version 2 and 3 in debug_line tables
Ed Maste
emaste at freebsd.org
Tue Apr 8 08:12:07 PDT 2014
Author: emaste
Date: Tue Apr 8 10:12:07 2014
New Revision: 205771
URL: http://llvm.org/viewvc/llvm-project?rev=205771&view=rev
Log:
Accept DWARF version 2 and 3 in debug_line tables
Issue reported by Matthew Gardiner. Further work is necessary to
synchronize LLDB's DWARF classes with the derivatives now in LLVM.
Modified:
lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugLine.cpp
Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugLine.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugLine.cpp?rev=205771&r1=205770&r2=205771&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugLine.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDebugLine.cpp Tue Apr 8 10:12:07 2014
@@ -418,7 +418,7 @@ DWARFDebugLine::ParsePrologue(const DWAR
const char * s;
prologue->total_length = debug_line_data.GetDWARFInitialLength(offset_ptr);
prologue->version = debug_line_data.GetU16(offset_ptr);
- if (prologue->version != 2)
+ if (prologue->version < 2 || prologue->version > 3)
return false;
prologue->prologue_length = debug_line_data.GetDWARFOffset(offset_ptr);
@@ -486,7 +486,7 @@ DWARFDebugLine::ParseSupportFiles (const
(void)debug_line_data.GetDWARFInitialLength(&offset);
const char * s;
uint32_t version = debug_line_data.GetU16(&offset);
- if (version != 2)
+ if (version < 2 || version > 3)
return false;
const dw_offset_t end_prologue_offset = debug_line_data.GetDWARFOffset(&offset) + offset;
More information about the lldb-commits
mailing list