Added missing question box for debugger step out in already running.

This commit is contained in:
mjbudd77 2021-07-02 20:02:01 -04:00
parent cae2d15e47
commit 4170384b72
1 changed files with 14 additions and 2 deletions

View File

@ -35,6 +35,7 @@
#include <QGridLayout>
#include <QRadioButton>
#include <QInputDialog>
#include <QMessageBox>
#include <QMenuBar>
#include <QMenu>
#include <QAction>
@ -1816,9 +1817,20 @@ void ConsoleDebugger::debugStepOutCB(void)
setRegsFromEntry();
if (dbgstate.stepout)
{
printf("Step Out is currently in process.\n");
int ret;
QMessageBox msgBox(QMessageBox::Question, tr("Step Out Already Active"),
tr("Step Out is currently in process. Cancel it and setup a new Step Out watch?"),
QMessageBox::No | QMessageBox::Yes, this);
ret = msgBox.exec();
if ( ret != QMessageBox::Yes )
{
//printf("Step out cancelled\n");
return;
}
//printf("Step out reset\n");
}
if (GetMem(X.PC) == 0x20)
{
dbgstate.jsrcount = 1;