depot/third_party/nixpkgs/pkgs/kde/plasma/drkonqi/gdb-path.patch
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

28 lines
1.6 KiB
Diff

diff --git a/src/data/debuggers/internal/gdbrc b/src/data/debuggers/internal/gdbrc
index 9a5c8fee..c32b1510 100644
--- a/src/data/debuggers/internal/gdbrc
+++ b/src/data/debuggers/internal/gdbrc
@@ -72,17 +72,18 @@ Name[wa]=gdb
Name[x-test]=xxgdbxx
Name[zh_CN]=gdb
Name[zh_TW]=gdb
-TryExec=gdb
+TryExec=@gdb@
+CodeName=gdb
Backends=KCrash|coredump-core
[KCrash]
-Exec=gdb -nw -n -batch -x %preamblefile -x %tempfile -p %pid %execpath
-ExecWithSymbolResolution=gdb -nw -n -batch --init-eval-command='set debuginfod enabled on' -x %preamblefile -x %tempfile -p %pid %execpath
+Exec=@gdb@ -nw -n -batch -x %preamblefile -x %tempfile -p %pid %execpath
+ExecWithSymbolResolution=@gdb@ -nw -n -batch --init-eval-command='set debuginfod enabled on' -x %preamblefile -x %tempfile -p %pid %execpath
PreambleCommands=set width 200\nsource %drkonqi_datadir/python/gdb_preamble/preamble.py\npy print_preamble()
BatchCommands=thread\nthread apply all bt
[coredump-core]
-Exec=gdb --nw --nx --batch --command=%preamblefile --command=%tempfile --core=%corefile %execpath
-ExecWithSymbolResolution=gdb --nw --nx --batch --init-eval-command='set debuginfod enabled on' --command=%preamblefile --command=%tempfile --core=%corefile %execpath
+Exec=@gdb@ --nw --nx --batch --command=%preamblefile --command=%tempfile --core=%corefile %execpath
+ExecWithSymbolResolution=@gdb@ --nw --nx --batch --init-eval-command='set debuginfod enabled on' --command=%preamblefile --command=%tempfile --core=%corefile %execpath
PreambleCommands=set width 200\nsource %drkonqi_datadir/python/gdb_preamble/preamble.py\npy print_preamble()
BatchCommands=thread\nthread apply all bt