summaryrefslogtreecommitdiff
path: root/vm_dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_dump.c')
-rw-r--r--vm_dump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vm_dump.c b/vm_dump.c
index eb2a89f..d22c652 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -112,9 +112,9 @@ control_frame_dump(rb_thread_t *th, rb_control_frame_t *cfp)
}
}
}
- else if (cfp->method_id) {
- iseq_name = rb_id2name(cfp->method_id);
- snprintf(posbuf, MAX_POSBUF, ":%s", rb_id2name(cfp->method_id));
+ else if (cfp->me) {
+ iseq_name = rb_id2name(cfp->me->original_id);
+ snprintf(posbuf, MAX_POSBUF, ":%s", rb_id2name(cfp->me->original_id));
line = -1;
}
@@ -253,7 +253,7 @@ vm_stack_dump_each(rb_thread_t *th, rb_control_frame_t *cfp)
if (iseq == 0) {
if (RUBYVM_CFUNC_FRAME_P(cfp)) {
- name = rb_id2name(cfp->method_id);
+ name = rb_id2name(cfp->me->original_id);
}
else {
name = "?";