From 00373e55b6370c4b8680a76f8e9622ad3606906e Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 6 Jul 2000 20:58:33 +0000 Subject: * 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. --- gdb/ChangeLog | 6 ++++++ gdb/infcmd.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5e95bdd..fab0c16 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2000-07-06 Christopher Faylor + + * 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. + Wed Jul 5 21:06:39 2000 Andrew Cagney * config/i386/fbsd.mh (NATDEPFILES): Keep NATDEPFILES to a single 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 -- cgit v1.1