From: Pedro Alves Date: Thu, 21 Feb 2008 17:26:16 +0000 (+0000) Subject: * remote.c (extended_remote_attach_1): Set attach_flag. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df7df359192404fa315547684f6f4e3a68daba17;p=binutils-gdb.git * remote.c (extended_remote_attach_1): Set attach_flag. (extended_remote_create_inferior_1): Clear attach_flag. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 02de632c10b..ed388e6264b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-02-21 Pedro Alves + + * remote.c (extended_remote_attach_1): Set attach_flag. + (extended_remote_create_inferior_1): Clear attach_flag. + 2008-02-20 Daniel Jacobowitz * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set 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);