* remote.c (remote_close): Don't call generic_mourn_inferior.

(remote_mourn_1): Call generic_mourn_inferior after closing the
	target.
This commit is contained in:
Pedro Alves 2009-03-18 02:24:02 +00:00
parent 5338cef16a
commit 8a2492ee53
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2009-03-18 Pedro Alves <pedro@codesourcery.com>
* 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 <pedro@codesourcery.com>
* remote.c (remote_start_remote): Add missing call to

View File

@ -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