From 8a2492ee53079de2710f5c0970760e179efee4bd Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 18 Mar 2009 02:24:02 +0000 Subject: [PATCH] * remote.c (remote_close): Don't call generic_mourn_inferior. (remote_mourn_1): Call generic_mourn_inferior after closing the target. --- gdb/ChangeLog | 6 ++++++ gdb/remote.c | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4c04a74cf08..7ac905a0d9e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2009-03-18 Pedro Alves + + * remote.c (remote_close): Don't call generic_mourn_inferior. + (remote_mourn_1): Call generic_mourn_inferior after closing the + target. + 2009-03-18 Pedro Alves * remote.c (remote_start_remote): Add missing call to diff --git a/gdb/remote.c b/gdb/remote.c index a1904867d50..950f71e3c0e 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -2398,8 +2398,6 @@ remote_close (int quitting) delete_async_event_handler (&remote_async_inferior_event_token); if (remote_async_get_pending_events_token) delete_async_event_handler (&remote_async_get_pending_events_token); - - generic_mourn_inferior (); } /* Query the remote side for the text, data and bss offsets. */ @@ -6604,7 +6602,8 @@ remote_mourn_1 (struct target_ops *target) { unpush_target (target); - /* remote_close takes care of cleaning up. */ + /* remote_close takes care of doing most of the clean up. */ + generic_mourn_inferior (); } static int -- 2.30.2