aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2005-11-11 15:45:44 +0000
committerKim F. Storm2005-11-11 15:45:44 +0000
commit338fa84a5ec5c280b7bbd19d1cac7b1268579789 (patch)
treed9ba8edfc2dc5bd36aab5ded5bd734bfb71c941e /src
parentab4d879ee67c120fc1b6ab40e2ecea0aedb5b93d (diff)
downloademacs-338fa84a5ec5c280b7bbd19d1cac7b1268579789.tar.gz
emacs-338fa84a5ec5c280b7bbd19d1cac7b1268579789.zip
(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')
-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
162 printf " HL" 162 printf " HL"
163 end 163 end
164 if ($it->n_overlay_strings > 0) 164 if ($it->n_overlay_strings > 0)
165 printf " nov=%d" 165 printf " nov=%d", $it->n_overlay_strings
166 end 166 end
167 if ($it->sp != 0) 167 if ($it->sp != 0)
168 printf " sp=%d", $it->sp 168 printf " sp=%d", $it->sp
@@ -712,6 +712,16 @@ document xbacktrace
712 an error was signaled. 712 an error was signaled.
713end 713end
714 714
715# Show Lisp backtrace after normal backtrace.
716define hookpost-backtrace
717 set $bt = backtrace_list
718 if $bt
719 echo \n
720 echo Lisp Backtrace:\n
721 xbacktrace
722 end
723end
724
715define xreload 725define xreload
716 set $tagmask = (((long)1 << gdb_gctypebits) - 1) 726 set $tagmask = (((long)1 << gdb_gctypebits) - 1)
717 set $valmask = gdb_use_lsb ? ~($tagmask) : ((long)1 << gdb_valbits) - 1 727 set $valmask = gdb_use_lsb ? ~($tagmask) : ((long)1 << gdb_valbits) - 1