mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 05:50:26 +02:00
instruction tracing tweak
* module/system/vm/trace.scm (vm-trace): No need to output the opcode number, and display the ip as a decimal, not a hexidecimal.
This commit is contained in:
parent
839eb61cde
commit
8d033f4839
1 changed files with 2 additions and 3 deletions
|
@ -89,9 +89,8 @@
|
|||
(let* ((ip (frame-instruction-pointer frame))
|
||||
(objcode (program-objcode (frame-procedure frame)))
|
||||
(opcode (bytevector-u8-ref (objcode->bytecode objcode)
|
||||
(+ ip *objcode-header-len*)))
|
||||
(inst (opcode->instruction opcode)))
|
||||
(format #t "0x~8X: ~a: ~a\n" ip opcode inst))))
|
||||
(+ ip *objcode-header-len*))))
|
||||
(format #t "~8d: ~a\n" ip (opcode->instruction opcode)))))
|
||||
|
||||
(define (vm-trace-on!)
|
||||
(if calls?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue