summaryrefslogtreecommitdiff
path: root/gdbinit
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2009-12-10 16:03:23 +0100
committerAndy Wingo <wingo@pobox.com>2009-12-10 16:03:23 +0100
commit08d7492cf0eab3165ca260b8aa060de8ae508e1c (patch)
tree77530c050857d3b4b258155a6299a0e3a7116545 /gdbinit
parent393301c5190d41f531c22b18f70e450207ea1418 (diff)
add gbt macro to gdbinit, and fix a bug in program-arity
* gdbinit: Add gbt macro, to make a Guile backtrace whenever you want. * module/system/vm/program.scm (program-arity): If ip is #f, just take the first arity.
Diffstat (limited to 'gdbinit')
-rw-r--r--gdbinit4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdbinit b/gdbinit
index 812f04b59..fdc9c759b 100644
--- a/gdbinit
+++ b/gdbinit
@@ -198,3 +198,7 @@ end
define inst
p scm_instruction_table[$arg0]
end
+
+define gbt
+ call scm_display_backtrace (scm_make_stack(0x404,0x304), scm_current_error_port (), 0x704, 0x704, 0x704)
+end