mirror of https://github.com/x64dbg/GleeBug
fixed DetachAndBreak (remove trap flag if internal stepping)
This commit is contained in:
parent
77b7fcca26
commit
6ff09aba85
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
Loading…
Reference in New Issue