(bt): Add post hook to "backtrace" to always dump lisp call stack to
increase chance of people sending it to us when reporting bugs.
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
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