mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
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.
This commit is contained in:
parent
35b07048ef
commit
eb16513165
Notes:
sideshowbarker
2024-07-16 23:50:13 +09:00
Author: https://github.com/itamar8910 Commit: https://github.com/SerenityOS/serenity/commit/eb16513165 Pull-request: https://github.com/SerenityOS/serenity/pull/17544
1 changed files with 0 additions and 7 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue