Fix not being able to return from debug when using WinDbg(DbgEng) ##debug

This commit is contained in:
yossizap 2020-11-08 23:56:17 +02:00 committed by Anton Kochkov
parent aaccc09828
commit ab38a9eb55
1 changed files with 2 additions and 0 deletions

View File

@ -575,6 +575,7 @@ remote_client:
static int windbg_close(RIODesc *fd) {
DbgEngContext *idbg = fd->data;
RCore *core = fd->io->corebind.core;
if (idbg->server) {
ITHISCALL (dbgClient, EndSession, DEBUG_END_DISCONNECT);
ITHISCALL (dbgClient, DisconnectProcessServer, idbg->server);
@ -583,6 +584,7 @@ static int windbg_close(RIODesc *fd) {
ITHISCALL (dbgClient, EndSession, DEBUG_END_PASSIVE);
}
__free_context (idbg);
core->dbg->user = NULL;
return 1;
}