mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
LibDebug: Factor out the "looks like embedded resource" condition
This commit is contained in:
parent
afc055c088
commit
edd4913573
3 changed files with 8 additions and 1 deletions
|
@ -65,7 +65,7 @@ void DwarfInfo::populate_compilation_units()
|
|||
// Meaning that for graphical applications, some line info data would be unread, triggering the assertion below.
|
||||
// As a fix, we don't create compilation units for line programs that come from resource files.
|
||||
#if defined(AK_COMPILER_CLANG)
|
||||
if (line_program->source_files().size() == 1 && line_program->source_files()[0].name.view().contains("serenity_icon_"sv)) {
|
||||
if (line_program->looks_like_embedded_resource()) {
|
||||
debug_info_stream.seek(unit_offset);
|
||||
} else
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue