summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-08-31 23:17:40 +0000
committermidipix <writeonce@midipix.org>2019-08-31 23:17:40 +0000
commit900be936926281ef6853e1e9cbf73d21796fa510 (patch)
treeddba6ce1a7f3b9504d7d7f1ec0b2c7bae69df1dc
parentaf9f51f2c9efbc18d0a7af23dc13345f1a46d4d5 (diff)
downloadchainport-900be936926281ef6853e1e9cbf73d21796fa510.tar.bz2
chainport-900be936926281ef6853e1e9cbf73d21796fa510.tar.xz
mgdb: winnt_detach(): fix failure test logic.
-rw-r--r--overlay/mgdb/gdb/winnt-nat.c2
1 files changed, 1 insertions, 1 deletions
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);
}