diff options
Diffstat (limited to 'lld/ELF/SyntheticSections.cpp')
-rw-r--r-- | lld/ELF/SyntheticSections.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp index bbc5508..7c09e8e 100644 --- a/lld/ELF/SyntheticSections.cpp +++ b/lld/ELF/SyntheticSections.cpp @@ -1811,7 +1811,11 @@ GdbIndexChunk GdbIndexSection::readDwarf(InputSection *Sec) { return {}; } - DWARFContextInMemory Dwarf(*Obj.get()); + DWARFContextInMemory Dwarf(*Obj.get(), nullptr, [&](Error E) { + error(toString(Sec->File) + ": error parsing DWARF data:\n>>> " + + toString(std::move(E))); + return ErrorPolicy::Continue; + }); GdbIndexChunk Ret; Ret.CompilationUnits = readCuList(Dwarf, Sec); |