]> git.eshelyaron.com Git - emacs.git/commitdiff
(pitx): Fix output format if n_overlay_strings > 0.
authorKim F. Storm <storm@cua.dk>
Fri, 11 Nov 2005 15:45:44 +0000 (15:45 +0000)
committerKim F. Storm <storm@cua.dk>
Fri, 11 Nov 2005 15:45:44 +0000 (15:45 +0000)
(bt): Add post hook to "backtrace" to always dump lisp call stack to
increase chance of people sending it to us when reporting bugs.

src/.gdbinit

index cb1deddb1ea5b1b8138bf9f1e8a746ddf81b3832..aa89531882b442254c5d0cf6c5a20d3b0885bc68 100644 (file)
@@ -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