summaryrefslogtreecommitdiffhomepage
path: root/src/error.c
diff options
context:
space:
mode:
authorTomoyuki Sahara <[email protected]>2012-11-01 14:54:04 +0900
committerTomoyuki Sahara <[email protected]>2012-11-02 10:33:23 +0900
commit80ed166e9f3f293f166086dc70e766272c342950 (patch)
treea6ac0d0c0e7f2bfc225be2a25d545a4836dc713a /src/error.c
parent075aa3eeaa9ee798ebcd8781f04a18fbbab7b2fd (diff)
downloadmruby-80ed166e9f3f293f166086dc70e766272c342950.tar.gz
mruby-80ed166e9f3f293f166086dc70e766272c342950.zip
show all callinfo's.
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c1
1 files changed, 1 insertions, 0 deletions
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)) {