aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorChristopher Faylor <me+cygwin@cgf.cx>2000-07-06 20:58:33 +0000
committerChristopher Faylor <me+cygwin@cgf.cx>2000-07-06 20:58:33 +0000
commit00373e55b6370c4b8680a76f8e9622ad3606906e (patch)
treee5258f7601d518f9f6649bb3c944d8b4a95d2792 /gdb/infcmd.c
parent1ad5eac08e8bb77da1ffd775ae07dce49c171053 (diff)
downloadgdb-00373e55b6370c4b8680a76f8e9622ad3606906e.zip
gdb-00373e55b6370c4b8680a76f8e9622ad3606906e.tar.gz
gdb-00373e55b6370c4b8680a76f8e9622ad3606906e.tar.bz2
* infcmd.c (attach_command): Move "stop_soon_quietly" setting inside
ATTACH_NO_WAIT conditional since we are not about to stop soon if we're not calling wait_for_inferior.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index f00b0e3..4f2dd8c 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -1721,11 +1721,11 @@ attach_command (args, from_tty)
wait_for_inferior as soon as the target reports a stop. */
init_wait_for_inferior ();
clear_proceed_status ();
- stop_soon_quietly = 1;
/* No traps are generated when attaching to inferior under Mach 3
or GNU hurd. */
#ifndef ATTACH_NO_WAIT
+ stop_soon_quietly = 1;
wait_for_inferior ();
#endif