[PATCH 3/5] winedbg/gdbproxy: Don't try to single-step a terminated process.

Zebediah Figura z.figura12 at gmail.com
Mon Jul 30 14:47:54 CDT 2018


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 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 61a9e12..da179a6 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);
 }
 
-- 
2.7.4




More information about the wine-devel mailing list