From 00349e3f2a146af4c05c5333785fd433d9b74475 Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Mon, 30 Jul 2018 14:47:54 -0500 Subject: [PATCH] winedbg/gdbproxy: Don't try to single-step a terminated process. Signed-off-by: Zebediah Figura Signed-off-by: Alexandre Julliard --- programs/winedbg/gdbproxy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/winedbg/gdbproxy.c b/programs/winedbg/gdbproxy.c index 0135cfcdafe..5fbd6c8dc4f 100644 --- a/programs/winedbg/gdbproxy.c +++ b/programs/winedbg/gdbproxy.c @@ -1065,7 +1065,8 @@ static enum packet_return packet_verbose_cont(struct gdb_context* gdbctx) } /* if(defaultAction >=0) */ wait_for_debuggee(gdbctx); - gdbctx->process->be_cpu->single_step(&gdbctx->context, FALSE); + if (gdbctx->process) + gdbctx->process->be_cpu->single_step(&gdbctx->context, FALSE); return packet_reply_status(gdbctx); }