path: root/vm_trace.c
diff options
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-05 06:04:59 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-05 06:04:59 +0000
commit88101695ab516ce30f930513150c1247ebc6c36d (patch)
tree2490b6b4dfe846b5504c45627c6bac0c2bd37f13 /vm_trace.c
parent757bbe8737305c13ff8885f7acb81b2ec588de4e (diff)
* proc.c (rb_binding_new_with_cfp): permit to create binding object
of IFUNC frame. When `rb_binding_new_with_cfp()' is called, VM finds out the first normal (has iseq) frame and create a binding object of this frame and create Env objects. `ep's of related frames are updated (`ep's point Env object managed spaces). However, `ep' of skipped IFUNC frame was not updated and old invalid `ep' was remained. It causes serious problems. To solve this issue, permit IFUNC to create binding. (Maybe there is no problem on it) [ruby-dev:46908] [ruby-trunk - Bug #7774] * test/ruby/test_settracefunc.rb: add a test. * vm.c (rb_vm_get_binding_creatable_next_cfp), vm_core.h: added. * vm_trace.c: fix to use `rb_vm_get_binding_creatable_next_cfp()'. git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_trace.c')
1 files changed, 2 insertions, 1 deletions
diff --git a/vm_trace.c b/vm_trace.c
index 93e6212..79d3731 100644
--- a/vm_trace.c
+++ b/vm_trace.c
@@ -763,7 +763,8 @@ VALUE
rb_tracearg_binding(rb_trace_arg_t *trace_arg)
rb_control_frame_t *cfp;
- cfp = rb_vm_get_ruby_level_next_cfp(trace_arg->th, trace_arg->cfp);
+ cfp = rb_vm_get_binding_creatable_next_cfp(trace_arg->th, trace_arg->cfp);
if (cfp) {
return rb_binding_new_with_cfp(trace_arg->th, cfp);