aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-12-12 13:45:43 +0000
committerPedro Alves <palves@redhat.com>2008-12-12 13:45:43 +0000
commit48aa3c2705215dc118792c7172b76d15f0f78fb5 (patch)
treec13520c8133a5feaf68831a24ee66e16dc7dbd1e
parentc25081787282f9acff5b23cf4f0b110857f03286 (diff)
downloadgdb-48aa3c2705215dc118792c7172b76d15f0f78fb5.zip
gdb-48aa3c2705215dc118792c7172b76d15f0f78fb5.tar.gz
gdb-48aa3c2705215dc118792c7172b76d15f0f78fb5.tar.bz2
* remote.c (extended_remote_mourn_1): Always call
generic_mourn_inferior.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/remote.c7
2 files changed, 8 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 33a32b6..88f2341 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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.
(process_stop_reply): Ditto.
(extended_remote_kill): Ditto.
diff --git a/gdb/remote.c b/gdb/remote.c
index 81eef47..fa0b4bc 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -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