mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 966570 - ARM Simulator: Avoid using the cmd pointer when it has not been set in the debugger. r=jandem
This commit is contained in:
parent
458c32bc97
commit
16581035b4
@ -677,7 +677,9 @@ ArmDebugger::debug()
|
||||
"%" XSTR(ARG_SIZE) "s "
|
||||
"%" XSTR(ARG_SIZE) "s",
|
||||
cmd, arg1, arg2);
|
||||
if ((strcmp(cmd, "si") == 0) || (strcmp(cmd, "stepi") == 0)) {
|
||||
if (argc < 0) {
|
||||
continue;
|
||||
} else if ((strcmp(cmd, "si") == 0) || (strcmp(cmd, "stepi") == 0)) {
|
||||
sim_->instructionDecode(reinterpret_cast<SimInstruction *>(sim_->get_pc()));
|
||||
} else if ((strcmp(cmd, "skip") == 0)) {
|
||||
sim_->set_pc(sim_->get_pc() + 4);
|
||||
|
Loading…
Reference in New Issue
Block a user