summaryrefslogtreecommitdiff
path: root/Userland/DevTools
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-04-26 04:39:58 +0200
committerLinus Groh <mail@linusgroh.de>2022-05-07 20:02:00 +0200
commitf8aea2a7e519d13f91661adf0c395f03cd9484e6 (patch)
tree78cc6688385c4caecb6b4c5117eb725d8aeccb77 /Userland/DevTools
parent89da0f2da526d027d8daf2f155f748683a85ef07 (diff)
downloadserenity-f8aea2a7e519d13f91661adf0c395f03cd9484e6.zip
Profiler: Use absolute mmap paths as-is
Diffstat (limited to 'Userland/DevTools')
-rw-r--r--Userland/DevTools/Profiler/Process.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/DevTools/Profiler/Process.cpp b/Userland/DevTools/Profiler/Process.cpp
index 81ea70facc..f2c09a4032 100644
--- a/Userland/DevTools/Profiler/Process.cpp
+++ b/Userland/DevTools/Profiler/Process.cpp
@@ -91,7 +91,9 @@ void LibraryMetadata::handle_mmap(FlatPtr base, size_t size, String const& name)
} else {
String path_string = path.to_string();
String full_path;
- if (Core::File::looks_like_shared_library(path_string))
+ if (path_string.starts_with('/'))
+ full_path = path_string;
+ else if (Core::File::looks_like_shared_library(path_string))
full_path = String::formatted("/usr/lib/{}", path);
else
full_path = path_string;