mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:07:45 +00:00
bt: add source file number integration
This commit is contained in:
parent
a0c0d781e8
commit
f4f12982ff
1 changed files with 2 additions and 2 deletions
|
@ -90,10 +90,10 @@ int main(int argc, char** argv)
|
||||||
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/{}", 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://{}{}\033\\", hostname, full_path);
|
out("\033]8;;file://{}{}?line_number={}\033\\", hostname, full_path, symbol.line_number);
|
||||||
}
|
}
|
||||||
|
|
||||||
out("\033[34;1m{}\033[0m:{}", LexicalPath(symbol.filename).basename(), symbol.line_number);
|
out("\033[34;1m{}:{}\033[0m", LexicalPath(symbol.filename).basename(), symbol.line_number);
|
||||||
|
|
||||||
if (linked)
|
if (linked)
|
||||||
out("\033]8;;\033\\");
|
out("\033]8;;\033\\");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue