@@ -222,19 +222,19 @@ DWARFUnit *DWARFDebugInfo::GetUnitAtOffset(DIERef::Section section,
222
222
return result;
223
223
}
224
224
225
- DWARFUnit *DWARFDebugInfo::GetUnit (const DIERef &die_ref) {
226
- // Make sure we get the correct SymbolFileDWARF from the DIERef before
227
- // asking for information from a debug info object. We might start with the
228
- // DWARFDebugInfo for the main executable in a split DWARF and the DIERef
229
- // might be pointing to a specific .dwo file or to the .dwp file. So this
230
- // makes sure we get the right SymbolFileDWARF instance before finding the
231
- // DWARFUnit that contains the offset. If we just use this object to do the
232
- // search, we might be using the wrong .debug_info section from the wrong
233
- // file with an offset meant for a different section.
234
- SymbolFileDWARF *dwarf = m_dwarf.GetDIERefSymbolFile (die_ref);
235
- return dwarf->DebugInfo ().GetUnitContainingDIEOffset (die_ref.section (),
236
- die_ref.die_offset ());
237
- }
225
+ // DWARFUnit *DWARFDebugInfo::GetUnit(const DIERef &die_ref) {
226
+ // // Make sure we get the correct SymbolFileDWARF from the DIERef before
227
+ // // asking for information from a debug info object. We might start with the
228
+ // // DWARFDebugInfo for the main executable in a split DWARF and the DIERef
229
+ // // might be pointing to a specific .dwo file or to the .dwp file. So this
230
+ // // makes sure we get the right SymbolFileDWARF instance before finding the
231
+ // // DWARFUnit that contains the offset. If we just use this object to do the
232
+ // // search, we might be using the wrong .debug_info section from the wrong
233
+ // // file with an offset meant for a different section.
234
+ // SymbolFileDWARF *dwarf = m_dwarf.GetDIERefSymbolFile(die_ref);
235
+ // return dwarf->DebugInfo().GetUnitContainingDIEOffset(die_ref.section(),
236
+ // die_ref.die_offset());
237
+ // }
238
238
239
239
DWARFUnit *
240
240
DWARFDebugInfo::GetUnitContainingDIEOffset (DIERef::Section section,
0 commit comments