aboutsummaryrefslogtreecommitdiff
path: root/misc/.gdbinit
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2023-10-11 22:38:03 +1100
committerYuchen Pei <id@ypei.org>2023-10-11 22:38:03 +1100
commitad1cdc1f55bf90f635365b728b91888edf31fa6e (patch)
treece717e93afadd10b38481756c500c91e6a207269 /misc/.gdbinit
parent24cc28936e9366e70ed89cc5ddc560b886d25d8b (diff)
[emacs] [gdb] Some minor changes
- emacs: my-elide-region that does the same thing as message-elide-region, with the comment-start as the prefix - gdbinit: an alias to a command that displays all backtrace of all threads
Diffstat (limited to 'misc/.gdbinit')
-rw-r--r--misc/.gdbinit3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/.gdbinit b/misc/.gdbinit
index b1eb7d8..b2c8a1f 100644
--- a/misc/.gdbinit
+++ b/misc/.gdbinit
@@ -2,6 +2,7 @@ set print static-members off
set print frame-arguments all
# unlimited print string length
set print elements 0
+handle SIGCONT nostop
handle SIGUSR1 nostop noprint
handle SIGUSR2 nostop noprint
handle SIGWAITING nostop noprint
@@ -18,6 +19,8 @@ alias wl = watch -l
alias awl = awatch -l
alias rwl = rwatch -l
alias rt = restart
+# Print backtrace of all threads
+alias abt = thread apply all bt
set history save on
set history filename ~/.gdb_history
set history remove-duplicates unlimited