summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibDebug
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2023-02-17 16:46:03 +0200
committerAndreas Kling <kling@serenityos.org>2023-02-24 19:09:27 +0100
commiteb16513165c5417e347f87e0da95d55a574b9928 (patch)
tree57e654b00736116b0045931cffd27f5dc1554658 /Userland/Libraries/LibDebug
parent35b07048ef8e8d82a935cfc69da72831c7f65a92 (diff)
downloadserenity-eb16513165c5417e347f87e0da95d55a574b9928.zip
LibDebug: Remove file path fixup for library sources
It's no longer needed as the file paths we get for libraries in the current build process is canonical.
Diffstat (limited to 'Userland/Libraries/LibDebug')
-rw-r--r--Userland/Libraries/LibDebug/DebugInfo.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/Userland/Libraries/LibDebug/DebugInfo.cpp b/Userland/Libraries/LibDebug/DebugInfo.cpp
index 6d6994cdfc..0c469b3df5 100644
--- a/Userland/Libraries/LibDebug/DebugInfo.cpp
+++ b/Userland/Libraries/LibDebug/DebugInfo.cpp
@@ -142,13 +142,6 @@ Optional<DebugInfo::SourcePositionAndAddress> DebugInfo::get_address_from_source
if (!file_path.starts_with('/'))
file_path = DeprecatedString::formatted("/{}", file_path);
- constexpr auto SERENITY_LIBS_PREFIX = "/usr/src/serenity"sv;
- if (file.starts_with(SERENITY_LIBS_PREFIX)) {
- size_t file_prefix_offset = SERENITY_LIBS_PREFIX.length() + 1;
- file_path = file.substring(file_prefix_offset, file.length() - file_prefix_offset);
- file_path = DeprecatedString::formatted("../{}", file_path);
- }
-
Optional<SourcePositionAndAddress> result;
for (auto const& line_entry : m_sorted_lines) {
if (!line_entry.file.ends_with(file_path))