1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-19 12:57:39 +00:00
serenity/Userland/Libraries/LibDebug/Dwarf
Daniel Bertalan a60d960420 LibDebug: Don't create compilation units for embedded resources
Our implementation (naively) assumes that there is a one-to-one
correspondence between compilation units and line programs, and that
their orders are identical. This is not the case for embedded resources,
as Clang only creates line programs for it, but not compilation units.

This mismatch caused an assertion failure, which made generating
backtraces for GUI applications impossible. This commit introduces a
hack that skips creating CompilationUnit objects for LinePrograms that
come from embedded resources.
2021-10-17 17:09:58 +01:00
..
AbbreviationsMap.cpp
AbbreviationsMap.h
AddressRanges.cpp
AddressRanges.h
AttributeValue.cpp
AttributeValue.h
CompilationUnit.cpp
CompilationUnit.h
DIE.cpp
DIE.h
DwarfInfo.cpp LibDebug: Don't create compilation units for embedded resources 2021-10-17 17:09:58 +01:00
DwarfInfo.h
DwarfTypes.h
Expression.cpp
Expression.h
LineProgram.cpp
LineProgram.h LibDebug: Don't create compilation units for embedded resources 2021-10-17 17:09:58 +01:00