From cc8d93df3123817de391709a2616620eaee962f1 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 18 Sep 2019 03:45:20 +0000 Subject: mgdb: winnt_mourn_inferior(): remove process record as needed. --- overlay/mgdb/gdb/winnt-nat.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/overlay/mgdb/gdb/winnt-nat.c b/overlay/mgdb/gdb/winnt-nat.c index fac6e27..64e4e65 100644 --- a/overlay/mgdb/gdb/winnt-nat.c +++ b/overlay/mgdb/gdb/winnt-nat.c @@ -734,6 +734,9 @@ static void winnt_attach (struct target_ops * t, const char * args, int from_tty static void winnt_mourn_inferior (struct target_ops * t) { + if (inferior_ptid.pid) + winnt_plist_remove(inferior_ptid.pid); + x86_cleanup_dregs(); inf_child_maybe_unpush_target(t); inf_child_mourn_inferior(t); -- cgit v1.2.3