(remote_mourn_1): Call generic_mourn_inferior after closing the
target.
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
init_wait_for_inferior in non-stop mode.
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. */
{
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