fixed DetachAndBreak (remove trap flag if internal stepping)

This commit is contained in:
mrexodia 2016-02-13 19:08:19 +01:00
parent 77b7fcca26
commit 6ff09aba85
1 changed files with 4 additions and 2 deletions

View File

@ -5,12 +5,10 @@ namespace GleeBug
Debugger::Debugger()
{
mProcesses.clear();
Capstone::GlobalInitialize(); //TODO: properly handle this
}
Debugger::~Debugger()
{
Capstone::GlobalFinalize(); //TODO: properly handle this
}
bool Debugger::Init(const wchar_t* szFilePath,
@ -102,5 +100,9 @@ namespace GleeBug
{
mDetachAndBreak = true;
mDetach = false;
//unset the trap flag when set by GleeBug
if (mThread->isInternalStepping)
mRegisters->TrapFlag = false;
}
};