From cef0333efd6b51706779c97e3646d542f3b0e381 Mon Sep 17 00:00:00 2001 From: Peter Schauer Date: Wed, 6 Jul 1994 08:01:52 +0000 Subject: * dbxread.c, elfread.c, mipsread.c, nlmread.c, os9kread.c: Move "no debugging symbols found" test to symfile.c. * symfile.c (syms_from_objfile, reread_symbols): Add "no debugging symbols found" test. * coffread.c (init_stringtab): Handle stripped files with a stringtab offset of zero gracefully. * osfsolib.c (solib_create_inferior_hook): Use DYNAMIC flag from BFD instead of stop_pc heuristic to determine if it is a dynamically linked object file. * procfs.c (wait_fd): Handle ENOENT error return from PIOCWSTOP ioctl, it indicates that the process has exited. --- gdb/procfs.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'gdb/procfs.c') diff --git a/gdb/procfs.c b/gdb/procfs.c index f70329a..39b3931 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -1,5 +1,5 @@ /* Machine independent support for SVR4 /proc (process file system) for GDB. - Copyright 1991, 1992 Free Software Foundation, Inc. + Copyright 1991, 1992, 1993, 1994 Free Software Foundation, Inc. Written by Fred Fish at Cygnus Support. This file is part of GDB. @@ -582,7 +582,13 @@ wait_fd () while (ioctl (pi->fd, PIOCWSTOP, &pi->prstatus) < 0) { - if (errno != EINTR) + if (errno == ENOENT) + { + /* Process exited. */ + pi->prstatus.pr_flags = 0; + break; + } + else if (errno != EINTR) { print_sys_errmsg (pi->pathname, errno); error ("PIOCWSTOP failed"); -- cgit v1.1