summaryrefslogtreecommitdiff
path: root/vm_backtrace.c
diff options
context:
space:
mode:
-rw-r--r--vm_backtrace.c19
1 files changed, 16 insertions, 3 deletions
@@ -1584,11 +1584,10 @@ rb_debug_inspector_backtrace_locations(const rb_debug_inspector_t *dc)
return dc->backtrace;
}
-int
-rb_profile_frames(int start, int limit, VALUE *buff, int *lines)
{
int i;
- const rb_execution_context_t *ec = GET_EC();
const rb_control_frame_t *cfp = ec->cfp, *end_cfp = RUBY_VM_END_CONTROL_FRAME(ec);
const rb_control_frame_t *top = cfp;
const rb_callable_method_entry_t *cme;
@@ -1650,6 +1649,20 @@ rb_profile_frames(int start, int limit, VALUE *buff, int *lines)
return i;
}
static const rb_iseq_t *
frame2iseq(VALUE frame)
{