* remote.c (extended_remote_attach_1): Set attach_flag.

(extended_remote_create_inferior_1): Clear attach_flag.
This commit is contained in:
Pedro Alves 2008-02-21 17:26:16 +00:00
parent 743ddb6b3d
commit df7df35919
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-02-21 Pedro Alves <pedro@codesourcery.com>
* remote.c (extended_remote_attach_1): Set attach_flag.
(extended_remote_create_inferior_1): Clear attach_flag.
2008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
* mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set

View file

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