summaryrefslogtreecommitdiff
path: root/vm_dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_dump.c')
-rw-r--r--vm_dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_dump.c b/vm_dump.c
index 0759a93..3addd9e 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -113,8 +113,8 @@ control_frame_dump(rb_thread_t *th, rb_control_frame_t *cfp)
}
}
else if (cfp->me) {
- iseq_name = rb_id2name(cfp->me->original_id);
- snprintf(posbuf, MAX_POSBUF, ":%s", rb_id2name(cfp->me->original_id));
+ iseq_name = rb_id2name(cfp->me->def->original_id);
+ snprintf(posbuf, MAX_POSBUF, ":%s", iseq_name);
line = -1;
}