From 80ed166e9f3f293f166086dc70e766272c342950 Mon Sep 17 00:00:00 2001 From: Tomoyuki Sahara Date: Thu, 1 Nov 2012 14:54:04 +0900 Subject: show all callinfo's. --- src/error.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/error.c') diff --git a/src/error.c b/src/error.c index 858c70820..430728db0 100644 --- a/src/error.c +++ b/src/error.c @@ -189,6 +189,7 @@ exc_debug_info(mrb_state *mrb, struct RObject *exc) mrb_callinfo *ci = mrb->ci; mrb_code *pc = ci->pc; + mrb_obj_iv_set(mrb, exc, mrb_intern(mrb, "ciidx"), mrb_fixnum_value(ci - mrb->cibase)); ci--; while (ci >= mrb->cibase) { if (ci->proc && !MRB_PROC_CFUNC_P(ci->proc)) { -- cgit v1.2.3