llvm-project/llvm/lib/DebugInfo/DWARF
David Blaikie 35fd37177b llvm-symbolizer: Don't crash when referencing an invalid CU in a dwp file twice
Previously we'd stash a null pointer in a sorted vector of CUs - the
next time around, we'd try to do a binary search in that vector (sorting
on a key inside the objects pointed to by the elements of the vector)
which would deref null if we'd stashed a null in there previously.

As a reasonable, but not ideal, workaround - don't stash any result in
the vector - this means every query will produce a new warning
(resulting in duplicate warnings) but better than a crash.

Stashing null in the list could be workable if we also stashed the
offset in a pair - but then all the clients would need to be fixed up
(maybe using a filtering iterator) which seems like overkill for this
uncommon error case.
2023-03-14 00:49:32 +00:00
..
CMakeLists.txt [Support] Move TargetParsers to new component 2022-12-20 11:05:50 +00:00
DWARFAbbreviationDeclaration.cpp [llvm] Don't include Optional.h (NFC) 2022-12-06 22:34:50 -08:00
DWARFAcceleratorTable.cpp
DWARFAddressRange.cpp
DWARFCompileUnit.cpp
DWARFContext.cpp Split getCompileUnitFor{Data,Code}Address. 2023-03-07 12:04:33 -08:00
DWARFDataExtractor.cpp
DWARFDebugAbbrev.cpp
DWARFDebugAddr.cpp
DWARFDebugAranges.cpp
DWARFDebugArangeSet.cpp
DWARFDebugFrame.cpp [DWARF] Store CFA value on DW_CFA_remember_state 2023-01-04 13:51:14 -08:00
DWARFDebugInfoEntry.cpp Remove unused #include "llvm/ADT/Optional.h" 2022-12-05 06:31:11 +00:00
DWARFDebugLine.cpp std::optional::value => operator*/operator-> 2022-12-16 22:44:08 +00:00
DWARFDebugLoc.cpp Remove the dependency between lib/DebugInfoDWARF and MC. 2022-12-15 18:23:27 -08:00
DWARFDebugMacro.cpp
DWARFDebugPubTable.cpp
DWARFDebugRangeList.cpp
DWARFDebugRnglists.cpp
DWARFDie.cpp Use llvm::count{lr}_{zero,one} (NFC) 2023-01-28 12:41:20 -08:00
DWARFExpression.cpp Remove the dependency between lib/DebugInfoDWARF and MC. 2022-12-15 18:23:27 -08:00
DWARFFormValue.cpp [DebugInfo][DWARF][NFC] follow LLVM style guideline about namespaces. 2023-03-10 16:40:07 +01:00
DWARFGdbIndex.cpp
DWARFListTable.cpp
DWARFLocationExpression.cpp
DWARFTypePrinter.cpp
DWARFTypeUnit.cpp
DWARFUnit.cpp llvm-symbolizer: Don't crash when referencing an invalid CU in a dwp file twice 2023-03-14 00:49:32 +00:00
DWARFUnitIndex.cpp [DWARFLibrary] Add support to re-construct cu-index 2023-01-12 10:59:38 -08:00
DWARFVerifier.cpp [llvm][dwwarf] Change CU/TU index to 64-bit 2023-01-11 15:07:11 -08:00