1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:57:45 +00:00

LibDebug: Propagate errors around LineProgram

Found while playing Fixme-Roulette.
This commit is contained in:
Ben Wiederhake 2023-05-12 00:23:31 +02:00 committed by Andreas Kling
parent 4093952a6e
commit c5d3de3f7d
3 changed files with 18 additions and 8 deletions

View file

@ -59,7 +59,7 @@ ErrorOr<void> DwarfInfo::populate_compilation_units()
u32 length_after_header = compilation_unit_header.length() - (compilation_unit_header.header_size() - offsetof(CompilationUnitHeader, common.version));
auto line_program = make<LineProgram>(*this, line_info_stream);
auto line_program = TRY(LineProgram::create(*this, line_info_stream));
// HACK: Clang generates line programs for embedded resource assembly files, but not compile units.
// Meaning that for graphical applications, some line info data would be unread, triggering the assertion below.