try to fix debugger issue

This commit is contained in:
water
2021-08-11 21:40:58 -04:00
parent 3fb5d71340
commit 688e291672
5 changed files with 576 additions and 507 deletions
+3
View File
@@ -57,6 +57,9 @@ bool Debugger::is_attached() const {
*/
void Debugger::detach() {
if (is_valid() && m_attached) {
if (!is_halted()) {
do_break();
}
stop_watcher();
xdbg::close_memory(m_debug_context.tid, &m_memory_handle);
xdbg::detach_and_resume(m_debug_context.tid);