From 900be936926281ef6853e1e9cbf73d21796fa510 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 31 Aug 2019 23:17:40 +0000 Subject: mgdb: winnt_detach(): fix failure test logic. --- overlay/mgdb/gdb/winnt-nat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overlay/mgdb/gdb/winnt-nat.c b/overlay/mgdb/gdb/winnt-nat.c index 885745c..71d279b 100644 --- a/overlay/mgdb/gdb/winnt-nat.c +++ b/overlay/mgdb/gdb/winnt-nat.c @@ -156,7 +156,7 @@ static void winnt_attach (struct target_ops * t, const char * args, int from_tty } - if ((pfd = __dbg_rbreak(pfd)) < 0) { + if (__dbg_rbreak(pfd) < 0) { __dbg_detach(pfd); winnt_perror ("could not issue a breakpoint in process",pid); } -- cgit v1.2.3