summaryrefslogtreecommitdiff
path: root/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-12-18 20:12:36 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-12-18 20:12:36 +0000
commitef5d0b5e97ec8e6fa395d377b09aa7755e345b4f (patch)
tree27916256fdeeb57d10d2f3d6948be5d71a703215 /source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
parent76e0736e7fcfeb179779e49c05604464b1ccd704 (diff)
Notes
Diffstat (limited to 'source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp')
-rw-r--r--source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp21
1 files changed, 4 insertions, 17 deletions
diff --git a/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp b/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
index 8d87c201eceb2..f595bd83d8469 100644
--- a/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
+++ b/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
@@ -161,9 +161,9 @@ bool DWARFDebugInfoEntry::FastExtract(
case DW_FORM_strp:
case DW_FORM_sec_offset:
if (cu->IsDWARF64())
- debug_info_data.GetU64(offset_ptr);
+ debug_info_data.GetU64(&offset);
else
- debug_info_data.GetU32(offset_ptr);
+ debug_info_data.GetU32(&offset);
break;
default:
@@ -325,9 +325,9 @@ bool DWARFDebugInfoEntry::Extract(SymbolFileDWARF *dwarf2Data,
case DW_FORM_strp:
case DW_FORM_sec_offset:
if (cu->IsDWARF64())
- debug_info_data.GetU64(offset_ptr);
+ debug_info_data.GetU64(&offset);
else
- debug_info_data.GetU32(offset_ptr);
+ debug_info_data.GetU32(&offset);
break;
default:
@@ -1314,19 +1314,6 @@ bool DWARFDebugInfoEntry::AppendTypeName(SymbolFileDWARF *dwarf2Data,
return false;
}
-bool DWARFDebugInfoEntry::Contains(const DWARFDebugInfoEntry *die) const {
- if (die) {
- const dw_offset_t die_offset = die->GetOffset();
- if (die_offset > GetOffset()) {
- const DWARFDebugInfoEntry *sibling = GetSibling();
- assert(sibling); // TODO: take this out
- if (sibling)
- return die_offset < sibling->GetOffset();
- }
- }
- return false;
-}
-
//----------------------------------------------------------------------
// BuildAddressRangeTable
//----------------------------------------------------------------------