diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 1994-07-06 08:01:52 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 1994-07-06 08:01:52 +0000 |
commit | cef0333efd6b51706779c97e3646d542f3b0e381 (patch) | |
tree | caa3ce788e14d1930f7ef456a12d79438c0e98eb /gdb/procfs.c | |
parent | 5fb54939a935432613fbe6d4de424ab168d6ca4d (diff) | |
download | gdb-cef0333efd6b51706779c97e3646d542f3b0e381.zip gdb-cef0333efd6b51706779c97e3646d542f3b0e381.tar.gz gdb-cef0333efd6b51706779c97e3646d542f3b0e381.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 10 |
1 files changed, 8 insertions, 2 deletions
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"); |