Skip to content

Commit 63d56ad

Browse files
committed
Finish merges with upstream HEAD.
1 parent 9ffb03d commit 63d56ad

File tree

4 files changed

+17
-15
lines changed

4 files changed

+17
-15
lines changed

lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -222,19 +222,19 @@ DWARFUnit *DWARFDebugInfo::GetUnitAtOffset(DIERef::Section section,
222222
return result;
223223
}
224224

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+
// }
238238

239239
DWARFUnit *
240240
DWARFDebugInfo::GetUnitContainingDIEOffset(DIERef::Section section,

lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "Plugins/SymbolFile/DWARF/DWARFDebugInfo.h"
1111
#include "Plugins/SymbolFile/DWARF/DWARFDeclContext.h"
1212
#include "Plugins/SymbolFile/DWARF/LogChannelDWARF.h"
13+
#include "Plugins/SymbolFile/DWARF/SymbolFileDWARFDwo.h"
1314
#include "lldb/Core/Module.h"
1415
#include "lldb/Utility/RegularExpression.h"
1516
#include "lldb/Utility/Stream.h"

lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class DebugNamesDWARFIndex : public DWARFIndex {
8686

8787
DWARFUnit *GetNonSkeletonUnit(const DebugNames::Entry &entry) const;
8888
DWARFDIE GetDIE(const DebugNames::Entry &entry) const;
89-
DWARFTypeUnit *GetForeignTypeUnit(const DebugNames::Entry &entry) const;
89+
9090
// std::optional<DIERef> ToDIERef(const DebugNames::Entry &entry) const;
9191

9292
/// Checks if an entry is a foreign TU and fetch the type unit.

lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1791,7 +1791,8 @@ SymbolFileDWARF::GetDIE(const DIERef &die_ref) {
17911791
std::lock_guard<std::recursive_mutex> guard(GetModuleMutex());
17921792
SymbolFileDWARF *symbol_file = GetDIERefSymbolFile(die_ref);
17931793
if (symbol_file)
1794-
return symbol_file->DebugInfo().GetDIE(die_ref);
1794+
return symbol_file->DebugInfo().GetDIE(die_ref.section(),
1795+
die_ref.die_offset());
17951796
return DWARFDIE();
17961797
}
17971798

0 commit comments

Comments
 (0)