mrdb: fix crash when stepping into Proc.call

How to reproduce:

```
cat a.rb
Proc.new { 1 }.call

echo step | mrdb a.rb
```
This commit is contained in:
sdottaka
2015-01-18 10:00:56 +09:00
parent 16884b87af
commit af51a4ac9d
+1 -1
View File
@@ -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;