mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:07:35 +00:00
Profiler: Use absolute mmap paths as-is
This commit is contained in:
parent
89da0f2da5
commit
f8aea2a7e5
1 changed files with 3 additions and 1 deletions
|
@ -91,7 +91,9 @@ void LibraryMetadata::handle_mmap(FlatPtr base, size_t size, String const& name)
|
||||||
} else {
|
} else {
|
||||||
String path_string = path.to_string();
|
String path_string = path.to_string();
|
||||||
String full_path;
|
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);
|
full_path = String::formatted("/usr/lib/{}", path);
|
||||||
else
|
else
|
||||||
full_path = path_string;
|
full_path = path_string;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue