1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Clearing breakpoints on detach

This commit is contained in:
Brian Fiete 2019-09-26 08:27:51 -07:00
parent 4fcbdc423d
commit 59f5faac5f

View file

@ -1234,6 +1234,11 @@ void WinDebugger::StopDebugging()
if ((mDbgProcessId != 0) && ((mDbgAttachFlags & BfDbgAttachFlag_ShutdownOnExit) == 0)) if ((mDbgProcessId != 0) && ((mDbgAttachFlags & BfDbgAttachFlag_ShutdownOnExit) == 0))
{ {
for (auto address : mTempBreakpoint)
RemoveBreakpoint(address);
for (auto breakpoint : mBreakpoints)
DetachBreakpoint(breakpoint);
BfLogDbg("StopDebugging\n"); BfLogDbg("StopDebugging\n");
::DebugActiveProcessStop(mDbgProcessId); ::DebugActiveProcessStop(mDbgProcessId);
mRunState = RunState_Terminated; mRunState = RunState_Terminated;