diff options
author | Andy Wingo <wingo@pobox.com> | 2014-05-04 11:46:18 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2014-05-04 11:46:18 +0200 |
commit | 7c080187bc55e84159b99faa9b7ae9f0a8ae90d2 (patch) | |
tree | f9e9f3df501113e8e6504449ec63fb8a689a826f /module/system/repl/debug.scm | |
parent | 18f8fd0211714f4d18ebab4dc4b85950c97483f4 (diff) | |
download | guile-7c080187bc55e84159b99faa9b7ae9f0a8ae90d2.tar.gz |
frame-address, frame-stack-pointer return offsets
* libguile/frames.c (scm_frame_address, scm_frame_stack_pointer): Return
offsets instead of absolute pointers. This is robust in the presence
of stack relocation.
* module/system/repl/debug.scm (print-registers): Adapt to print sp and
fp as integers.
Diffstat (limited to 'module/system/repl/debug.scm')
-rw-r--r-- | module/system/repl/debug.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/system/repl/debug.scm b/module/system/repl/debug.scm index a15defc25..300145d16 100644 --- a/module/system/repl/debug.scm +++ b/module/system/repl/debug.scm @@ -100,8 +100,8 @@ (format port " (#x~x~@d)" code (- (frame-instruction-pointer frame) code)))) (newline port) - (print "sp = #x~x\n" (frame-stack-pointer frame)) - (print "fp = #x~x\n" (frame-address frame))) + (print "sp = ~a\n" (frame-stack-pointer frame)) + (print "fp = ~a\n" (frame-address frame))) (define* (print-locals frame #:optional (port (current-output-port)) #:key (width (terminal-width)) (per-line-prefix " ")) |