From f4f12982ff7f199811a501494a7104656014e1f2 Mon Sep 17 00:00:00 2001 From: ElDonad Date: Mon, 1 Mar 2021 22:01:38 +0100 Subject: [PATCH] bt: add source file number integration --- Userland/Utilities/bt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Utilities/bt.cpp b/Userland/Utilities/bt.cpp index c2c5f1161a..063f83715c 100644 --- a/Userland/Utilities/bt.cpp +++ b/Userland/Utilities/bt.cpp @@ -90,10 +90,10 @@ int main(int argc, char** argv) auto full_path = LexicalPath::canonicalized_path(String::formatted("/usr/src/serenity/dummy/{}", symbol.filename)); if (access(full_path.characters(), F_OK) == 0) { 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) out("\033]8;;\033\\");