1
0
Fork 0

DBG: remove some unused functionality related to pausing

This commit is contained in:
Duncan Ogilvie 2019-11-03 23:14:47 +01:00
parent 52af639cc4
commit 3fc1bdebc9
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
3 changed files with 1 additions and 29 deletions

View File

@ -43,7 +43,6 @@ bool cbDebugRunInternal(int argc, char* argv[])
// Don't "run" twice if the program is already running
if(dbgisrunning())
return false;
dbgsetispausedbyuser(false);
GuiSetDebugStateAsync(running);
unlock(WAITID_RUN);
PLUG_CB_RESUMEDEBUG callbackInfo;

View File

@ -48,7 +48,6 @@ static duint pCreateProcessBase = 0;
static duint pDebuggedEntry = 0;
static bool bRepeatIn = false;
static duint stepRepeat = 0;
static bool isPausedByUser = false;
static bool isDetachedByUser = false;
static bool bIsAttached = false;
static bool bSkipExceptions = false;
@ -327,11 +326,6 @@ void dbgsetsteprepeat(bool steppingIn, duint repeat)
stepRepeat = repeat;
}
void dbgsetispausedbyuser(bool b)
{
isPausedByUser = b;
}
void dbgsetisdetachedbyuser(bool b)
{
isDetachedByUser = b;
@ -732,6 +726,7 @@ static bool getConditionValue(const char* expression)
void cbPauseBreakpoint()
{
dputs(QT_TRANSLATE_NOOP("DBG", "paused!"));
hActiveThread = ThreadGetHandle(((DEBUG_EVENT*)GetDebugData())->dwThreadId);
auto CIP = GetContextDataEx(hActiveThread, UE_CIP);
DeleteBPX(CIP);
@ -1900,27 +1895,6 @@ static void cbException(EXCEPTION_DEBUG_INFO* ExceptionData)
_dbg_animatestop(); // Stop animating
return;
}
else if(isPausedByUser)
{
dputs(QT_TRANSLATE_NOOP("DBG", "paused!"));
SetNextDbgContinueStatus(DBG_CONTINUE);
_dbg_animatestop(); // Stop animating
//update memory map
MemUpdateMap();
DebugUpdateGuiSetStateAsync(GetContextDataEx(hActiveThread, UE_CIP), true);
//lock
lock(WAITID_RUN);
bPausedOnException = true;
// Plugin callback
PLUG_CB_PAUSEDEBUG pauseInfo = { nullptr };
plugincbcall(CB_PAUSEDEBUG, &pauseInfo);
dbgsetforeground();
dbgsetskipexceptions(false);
plugincbcall(CB_EXCEPTION, &callbackInfo);
wait(WAITID_RUN);
bPausedOnException = false;
return;
}
SetContextDataEx(hActiveThread, UE_CIP, (duint)ExceptionData->ExceptionRecord.ExceptionAddress);
}
else if(ExceptionData->ExceptionRecord.ExceptionCode == MS_VC_EXCEPTION) //SetThreadName exception

View File

@ -53,7 +53,6 @@ void DebugSetBreakpoints();
void GuiSetDebugStateAsync(DBGSTATE state);
void dbgsetskipexceptions(bool skip);
void dbgsetsteprepeat(bool steppingIn, duint repeat);
void dbgsetispausedbyuser(bool b);
void dbgsetisdetachedbyuser(bool b);
void dbgsetfreezestack(bool freeze);
void dbgclearignoredexceptions();