summaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2008-02-21 17:26:16 +0000
committerPedro Alves <pedro@codesourcery.com>2008-02-21 17:26:16 +0000
commit48dce58365672fcb1030057ad8b71046595d98d6 (patch)
tree6a65036d7ba778803d6988ea28339097df765037 /gdb/remote.c
parent00977ab1c1e2d133321b5458860f55b86b8b5d74 (diff)
downloadgdb-48dce58365672fcb1030057ad8b71046595d98d6.tar.gz
* remote.c (extended_remote_attach_1): Set attach_flag.
(extended_remote_create_inferior_1): Clear attach_flag.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 9139ea82b30..8fdc0da71d7 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -2874,6 +2874,7 @@ extended_remote_attach_1 (struct target_ops *target, char *args, int from_tty)
target_mark_running (target);
inferior_ptid = pid_to_ptid (pid);
+ attach_flag = 1;
}
static void
@@ -5482,6 +5483,7 @@ extended_remote_create_inferior_1 (char *exec_file, char *args,
}
/* Now mark the inferior as running before we do anything else. */
+ attach_flag = 0;
inferior_ptid = pid_to_ptid (MAGIC_NULL_PID);
if (async_p)
target_mark_running (&extended_async_remote_ops);