summaryrefslogtreecommitdiff
path: root/vm_exec.h
diff options
context:
space:
mode:
authortarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-29 12:01:18 +0000
committertarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-29 12:01:18 +0000
commit44cb6eaef9b189a48d78a0090da78d48e2196fb5 (patch)
treee5c74862a9019a1bdf39fa2bf24a69582a8f5256 /vm_exec.h
parent511cc1db8cb9b4ed2a01758e04b71688f0c25443 (diff)
* 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
Diffstat (limited to 'vm_exec.h')
-rw-r--r--vm_exec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_exec.h b/vm_exec.h
index 7e2b60a359..e087a7f603 100644
--- a/vm_exec.h
+++ b/vm_exec.h
@@ -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