Breakpad DWARF support: Check for DWARF line info under Mac OS X section names.
For some reason, Mac OS X places DWARF debugging information in sections whose names begin with "__", rather than the names beginning with "." given in the DWARF spec. This patch changes google_breakpad::DwarfCUToModule to look for line number information under both names. A=jimb R=mark git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@612 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
75ce593891
commit
bd0a7f9da1
1 changed files with 4 additions and 0 deletions
|
@ -619,6 +619,10 @@ void DwarfCUToModule::ReadSourceLines(uint64 offset) {
|
|||
= cu_context_->file_context->section_map;
|
||||
dwarf2reader::SectionMap::const_iterator map_entry
|
||||
= section_map.find(".debug_line");
|
||||
// Mac OS X puts DWARF data in sections whose names begin with "__"
|
||||
// instead of ".".
|
||||
if (map_entry == section_map.end())
|
||||
map_entry = section_map.find("__debug_line");
|
||||
if (map_entry == section_map.end()) {
|
||||
cu_context_->reporter->MissingSection(".debug_line");
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue