mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
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.
This commit is contained in:
parent
69e2431c64
commit
f1c98dc5ea
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
// See if we can find the sources in /usr/src
|
// See if we can find the sources in /usr/src
|
||||||
// FIXME: I'm sure this can be improved!
|
// 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) {
|
if (access(full_path.characters(), F_OK) == 0) {
|
||||||
linked = true;
|
linked = true;
|
||||||
out("\033]8;;file://{}{}?line_number={}\033\\", hostname, full_path, symbol.line_number);
|
out("\033]8;;file://{}{}?line_number={}\033\\", hostname, full_path, symbol.line_number);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue