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, 3 insertions, 1 deletions
diff --git a/vm_dump.c b/vm_dump.c
index f3b39ac08d..5221b449fa 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -97,6 +97,8 @@ control_frame_dump(rb_thread_t *th, rb_control_frame_t *cfp)
iseq_name = "<ifunc>";
}
else {
+ int vm_get_sourceline(rb_control_frame_t *);
+
pc = cfp->pc - cfp->iseq->iseq_encoded;
iseq_name = RSTRING_PTR(cfp->iseq->name);
line = vm_get_sourceline(cfp);
@@ -579,7 +581,7 @@ rb_vm_bugreport(void)
int i;
SDR();
- bt = vm_backtrace(th, 0);
+ bt = rb_make_backtrace(th, 0);
if (TYPE(bt) == T_ARRAY)
for (i = 0; i < RARRAY_LEN(bt); i++) {
dp(RARRAY_PTR(bt)[i]);