From f1c98dc5ea9306cb2df1fd44e662e12659a80167 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Fri, 30 Apr 2021 21:45:54 -0700 Subject: [PATCH] bt: Fix generation of click-able links for source files. When the default build location was moved from /Build to the new architecture specific directory, /Build/i686, this code broke. All file names are now path relative one additional level up. So continue the hack, and introduce another dummy directory to make the relative paths resolve correctly. --- Userland/Utilities/bt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Utilities/bt.cpp b/Userland/Utilities/bt.cpp index ae0b11c9c6..0010233b2e 100644 --- a/Userland/Utilities/bt.cpp +++ b/Userland/Utilities/bt.cpp @@ -67,7 +67,7 @@ int main(int argc, char** argv) // See if we can find the sources in /usr/src // FIXME: I'm sure this can be improved! - auto full_path = LexicalPath::canonicalized_path(String::formatted("/usr/src/serenity/dummy/{}", symbol.filename)); + auto full_path = LexicalPath::canonicalized_path(String::formatted("/usr/src/serenity/dummy/dummy/{}", symbol.filename)); if (access(full_path.characters(), F_OK) == 0) { linked = true; out("\033]8;;file://{}{}?line_number={}\033\\", hostname, full_path, symbol.line_number);