mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Clearing breakpoints on detach
This commit is contained in:
parent
4fcbdc423d
commit
59f5faac5f
1 changed files with 5 additions and 0 deletions
|
@ -1234,6 +1234,11 @@ void WinDebugger::StopDebugging()
|
|||
|
||||
if ((mDbgProcessId != 0) && ((mDbgAttachFlags & BfDbgAttachFlag_ShutdownOnExit) == 0))
|
||||
{
|
||||
for (auto address : mTempBreakpoint)
|
||||
RemoveBreakpoint(address);
|
||||
for (auto breakpoint : mBreakpoints)
|
||||
DetachBreakpoint(breakpoint);
|
||||
|
||||
BfLogDbg("StopDebugging\n");
|
||||
::DebugActiveProcessStop(mDbgProcessId);
|
||||
mRunState = RunState_Terminated;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue