f051e2fe04
Fix a long-standing bug where if you step off of the end of pseudo main we'd segfault in the interpreter loop. To get this we have to have a breakpoint in the final TC in pseudo main, and have that called from another TC, then Step or Next off the end. We'd end up with a PC of zero after the ret, which makes sense, but the logic after interpreting a block of code to stay in the interpreter when debugging was blind to this case.
14 linhas
366 B
Plaintext
14 linhas
366 B
Plaintext
Program %s/flow_pseudomain.php loaded. Type '[r]un' or '[c]ontinue' to go.
|
|
break 5
|
|
Breakpoint 1 set on line 5 of %s/flow_pseudomain.php
|
|
But wont break until file %s/flow_pseudomain.php has been loaded.
|
|
continue
|
|
Breakpoint 1 reached on line 5 of %s/flow_pseudomain.php
|
|
4 $x = 1;
|
|
5 echo $x;
|
|
6 (END)
|
|
|
|
step
|
|
1Program %s/flow_pseudomain.php exited normally.
|
|
quit
|