mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_dump.c (rb_vmdebug_debug_print_pre): Bugfix. Get PC directly.
PC is cached into local stack and cfp->pc is incorrent at next of branch or jump. * vm_exec.h (DEBUG_ENTER_INSN): catch up this change. * vm_core.h: update signature of rb_vmdebug_debug_print_pre. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
511cc1db8c
commit
44cb6eaef9
4 changed files with 15 additions and 5 deletions
|
@ -27,7 +27,7 @@ typedef rb_iseq_t *ISEQ;
|
|||
#if VMDEBUG > 0
|
||||
#define debugs printf
|
||||
#define DEBUG_ENTER_INSN(insn) \
|
||||
rb_vmdebug_debug_print_pre(th, GET_CFP());
|
||||
rb_vmdebug_debug_print_pre(th, GET_CFP(),GET_PC());
|
||||
|
||||
#if OPT_STACK_CACHING
|
||||
#define SC_REGS() , reg_a, reg_b
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue