🐛 fix invalid debug mode problem
This commit is contained in:
parent
820c05c986
commit
dfcccd4523
|
@ -181,10 +181,10 @@ void dbg::interact() {
|
||||||
if (do_profiling) {
|
if (do_profiling) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((bytecode[ctx.pc].fidx!=bk_fidx ||
|
// is not break point and is not next stop command
|
||||||
bytecode[ctx.pc].line!=bk_line) && // break point
|
const auto& code = bytecode[ctx.pc];
|
||||||
!next) {// next step
|
if ((code.fidx!=bk_fidx || code.line!=bk_line) && !next) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -240,6 +240,7 @@ void dbg::run(
|
||||||
|
|
||||||
set_detail_report_info(true);
|
set_detail_report_info(true);
|
||||||
do_profiling = profile || show_all_prof_result;
|
do_profiling = profile || show_all_prof_result;
|
||||||
|
next = true;
|
||||||
|
|
||||||
const auto& file_list = linker.get_file_list();
|
const auto& file_list = linker.get_file_list();
|
||||||
fsize = file_list.size();
|
fsize = file_list.size();
|
||||||
|
|
|
@ -24,5 +24,5 @@ while(1) {
|
||||||
res ~= "\n";
|
res ~= "\n";
|
||||||
}
|
}
|
||||||
print(res);
|
print(res);
|
||||||
unix.sleep(1/30);
|
unix.sleep(1/20);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue