summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2023-01-12 14:35:31 +0100
committerJelle Raaijmakers <jelle@gmta.nl>2023-01-19 11:29:29 +0100
commite65767c2e70b4752baeb7ba668c03effb48eb132 (patch)
treebd0e5b3922a6af85c41972a867684adbdc294621
parentedd49135732ac7e53edc18c5972a579f8f47dab3 (diff)
downloadserenity-e65767c2e70b4752baeb7ba668c03effb48eb132.zip
LibDebug: Identify embedded resources with a preceding dot
-rw-r--r--Userland/Libraries/LibDebug/Dwarf/LineProgram.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/Userland/Libraries/LibDebug/Dwarf/LineProgram.cpp b/Userland/Libraries/LibDebug/Dwarf/LineProgram.cpp
index 698418d33a..fd2d02a680 100644
--- a/Userland/Libraries/LibDebug/Dwarf/LineProgram.cpp
+++ b/Userland/Libraries/LibDebug/Dwarf/LineProgram.cpp
@@ -308,7 +308,13 @@ LineProgram::DirectoryAndFile LineProgram::get_directory_and_file(size_t file_in
bool LineProgram::looks_like_embedded_resource() const
{
- return source_files().size() == 1 && source_files()[0].name.view().contains("serenity_icon_"sv);
+ if (source_files().size() == 1)
+ return source_files()[0].name.view().contains("serenity_icon_"sv);
+
+ if (source_files().size() == 2 && source_files()[0].name.view() == "."sv)
+ return source_files()[1].name.view().contains("serenity_icon_"sv);
+
+ return false;
}
}