should print file:line when exception is raised within mrblib

This commit is contained in:
Yukihiro Matsumoto
2012-09-03 01:26:12 +09:00
parent 26ac77af9b
commit ba0154c671
+2 -1
View File
@@ -186,8 +186,8 @@ exc_debug_info(mrb_state *mrb, struct RObject *exc)
mrb_callinfo *ci = mrb->ci;
mrb_code *pc = ci->pc;
ci--;
while (ci >= mrb->cibase) {
if (!pc && ci->pc) pc = ci->pc;
if (ci->proc && !MRB_PROC_CFUNC_P(ci->proc)) {
mrb_irep *irep = ci->proc->body.irep;
@@ -197,6 +197,7 @@ exc_debug_info(mrb_state *mrb, struct RObject *exc)
return;
}
}
pc = ci->pc;
ci--;
}
}