Skip to content

Commit

Permalink
bt: Fix generation of click-able links for source files.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bgianfo authored and linusg committed May 1, 2021
1 parent 69e2431 commit f1c98dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Userland/Utilities/bt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:https://{}{}?line_number={}\033\\", hostname, full_path, symbol.line_number);
Expand Down

0 comments on commit f1c98dc

Please sign in to comment.