1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 17:55:06 +00:00

LibDebug: Add ability to detach from debuggee

This commit is contained in:
Itamar 2020-09-26 11:22:58 +03:00 committed by Andreas Kling
parent 6c73fdf8d1
commit 8ce641cefc
2 changed files with 17 additions and 2 deletions

View file

@ -266,4 +266,12 @@ void* DebugSession::single_step()
return (void*)regs.eip;
}
void DebugSession::detach()
{
for (auto& breakpoint : m_breakpoints.keys()) {
remove_breakpoint(breakpoint);
}
continue_debugee();
}
}