You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* FIXME, some 387-specific items of use taken from i387-tdep.c -- ought to be
merged back in. */
#include <sys/proc.h>
#include <sys/dir.h>
#include <sys/ioctl.h>
-#include <sys/stat.h>
+#include "gdb_stat.h"
#ifdef _SEQUENT_
#include <sys/ptrace.h>
#else
#endif
do {
- if (attach_flag)
- set_sigint_trap(); /* Causes SIGINT to be passed on to the
- attached process. */
+ set_sigint_trap(); /* Causes SIGINT to be passed on to the
+ attached process. */
save_errno = errno;
got_sigchld = 0;
sigsuspend(&set);
}
- if (attach_flag)
- clear_sigint_trap();
+ clear_sigint_trap();
rv = mptrace(XPT_STOPSTAT, 0, (char *)&pt, 0);
if (-1 == rv) {