mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #2705 from sdottaka/mrdb-step-into-proc-call
mrdb: fix crash when stepping into Proc.call
This commit is contained in:
@@ -569,7 +569,7 @@ mrb_code_fetch_hook(mrb_state *mrb, mrb_irep *irep, mrb_code *pc, mrb_value *reg
|
||||
switch (dbg->xm) {
|
||||
case DBG_STEP:
|
||||
case DBG_NEXT: // temporary
|
||||
if (dbg->prvfile == file && dbg->prvline == line) {
|
||||
if (!file || (dbg->prvfile == file && dbg->prvline == line)) {
|
||||
return;
|
||||
}
|
||||
dbg->method_bpno = 0;
|
||||
|
||||
Reference in New Issue
Block a user