diff options
author | Pedro Alves <palves@redhat.com> | 2009-03-18 02:24:02 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-03-18 02:24:02 +0000 |
commit | 8a2492ee53079de2710f5c0970760e179efee4bd (patch) | |
tree | d644425935f0a4fba2a0a91860269038d1c919b7 /gdb/remote.c | |
parent | 5338cef16adb508bc11dbbdbbb3e9560e67e5980 (diff) | |
download | gdb-8a2492ee53079de2710f5c0970760e179efee4bd.zip gdb-8a2492ee53079de2710f5c0970760e179efee4bd.tar.gz gdb-8a2492ee53079de2710f5c0970760e179efee4bd.tar.bz2 |
* remote.c (remote_close): Don't call generic_mourn_inferior.
(remote_mourn_1): Call generic_mourn_inferior after closing the
target.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index a190486..950f71e 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 |