summaryrefslogtreecommitdiff
path: root/src/.gdbinit
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2005-11-11 15:45:44 +0000
committerKim F. Storm <storm@cua.dk>2005-11-11 15:45:44 +0000
commit338fa84a5ec5c280b7bbd19d1cac7b1268579789 (patch)
treed9ba8edfc2dc5bd36aab5ded5bd734bfb71c941e /src/.gdbinit
parentab4d879ee67c120fc1b6ab40e2ecea0aedb5b93d (diff)
downloademacs-338fa84a5ec5c280b7bbd19d1cac7b1268579789.tar.gz
(pitx): Fix output format if n_overlay_strings > 0.
(bt): Add post hook to "backtrace" to always dump lisp call stack to increase chance of people sending it to us when reporting bugs.
Diffstat (limited to 'src/.gdbinit')
-rw-r--r--src/.gdbinit12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/.gdbinit b/src/.gdbinit
index cb1deddb1ea..aa89531882b 100644
--- a/src/.gdbinit
+++ b/src/.gdbinit
@@ -162,7 +162,7 @@ define pitx
printf " HL"
end
if ($it->n_overlay_strings > 0)
- printf " nov=%d"
+ printf " nov=%d", $it->n_overlay_strings
end
if ($it->sp != 0)
printf " sp=%d", $it->sp
@@ -712,6 +712,16 @@ document xbacktrace
an error was signaled.
end
+# Show Lisp backtrace after normal backtrace.
+define hookpost-backtrace
+ set $bt = backtrace_list
+ if $bt
+ echo \n
+ echo Lisp Backtrace:\n
+ xbacktrace
+ end
+end
+
define xreload
set $tagmask = (((long)1 << gdb_gctypebits) - 1)
set $valmask = gdb_use_lsb ? ~($tagmask) : ((long)1 << gdb_valbits) - 1