* remote.c (extended_remote_mourn_1): Always call

generic_mourn_inferior.
This commit is contained in:
Pedro Alves 2008-12-12 13:45:43 +00:00
parent c250817872
commit 48aa3c2705
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2008-12-12 Pedro Alves <pedro@codesourcery.com>
* remote.c (extended_remote_mourn_1): Always call
generic_mourn_inferior.
2008-12-12 Pedro Alves <pedro@codesourcery.com>
* remote.c (remote_detach_1): Don't delete the inferior here.

View File

@ -6551,6 +6551,9 @@ extended_remote_mourn_1 (struct target_ops *target)
/* Unlike "target remote", we do not want to unpush the target; then
the next time the user says "run", we won't be connected. */
/* Call common code to mark the inferior as not running. */
generic_mourn_inferior ();
if (have_inferiors ())
{
extern void nullify_last_target_wait_ptid ();
@ -6562,10 +6565,6 @@ extended_remote_mourn_1 (struct target_ops *target)
}
else
{
struct remote_state *rs = get_remote_state ();
/* Call common code to mark the inferior as not running. */
generic_mourn_inferior ();
if (!remote_multi_process_p (rs))
{
/* Check whether the target is running now - some remote stubs