Mercurial > emacs
comparison src/.gdbinit @ 66817:98ff41842c94
(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.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Fri, 11 Nov 2005 15:45:44 +0000 |
parents | 2acb0afcc57a |
children | 4689a51b18f9 |
comparison
equal
deleted
inserted
replaced
66816:5e7c7a5ed80e | 66817:98ff41842c94 |
---|---|
160 end | 160 end |
161 if ($it->header_line_p) | 161 if ($it->header_line_p) |
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 |
169 end | 169 end |
170 if ($it->what == IT_CHARACTER) | 170 if ($it->what == IT_CHARACTER) |
710 Print a backtrace of Lisp function calls from backtrace_list. | 710 Print a backtrace of Lisp function calls from backtrace_list. |
711 Set a breakpoint at Fsignal and call this to see from where | 711 Set a breakpoint at Fsignal and call this to see from where |
712 an error was signaled. | 712 an error was signaled. |
713 end | 713 end |
714 | 714 |
715 # Show Lisp backtrace after normal backtrace. | |
716 define hookpost-backtrace | |
717 set $bt = backtrace_list | |
718 if $bt | |
719 echo \n | |
720 echo Lisp Backtrace:\n | |
721 xbacktrace | |
722 end | |
723 end | |
724 | |
715 define xreload | 725 define 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 |
718 end | 728 end |
719 document xreload | 729 document xreload |