aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-nat.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-05-05 19:07:10 +0000
committerStan Shebs <shebs@codesourcery.com>1994-05-05 19:07:10 +0000
commit523ca9d0a2143eef5728c7ac124958508cee0cfc (patch)
treef52d2b131408e84cb6ef09aae0c57f2a29fb632d /gdb/rs6000-nat.c
parent9ea9e1af482fc3487a1698b8258caf4a8bfe9812 (diff)
downloadgdb-523ca9d0a2143eef5728c7ac124958508cee0cfc.zip
gdb-523ca9d0a2143eef5728c7ac124958508cee0cfc.tar.gz
gdb-523ca9d0a2143eef5728c7ac124958508cee0cfc.tar.bz2
Thu May 5 12:00:22 1994 Stan Shebs (shebs@andros.cygnus.com)
* rs6000-nat.c (vmap_ldinfo): Don't fail if fstat returns an error.
Diffstat (limited to 'gdb/rs6000-nat.c')
-rw-r--r--gdb/rs6000-nat.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c
index e3d626f..1c80a7a 100644
--- a/gdb/rs6000-nat.c
+++ b/gdb/rs6000-nat.c
@@ -502,9 +502,10 @@ vmap_ldinfo (ldi)
fatal ("cannot find BFD's iostream for %s", vp->name);
/* See if we are referring to the same file. */
+ /* An error here is innocuous, most likely meaning that
+ the file descriptor has become worthless. */
if (fstat (fileno(io), &vi) < 0)
- fatal ("cannot fstat(fd=%d) the BFD for %s (errno=%d)",
- fileno(io), vp->name, errno);
+ continue;
if (ii.st_dev != vi.st_dev || ii.st_ino != vi.st_ino)
continue;
@@ -717,10 +718,11 @@ xcoff_relocate_core ()
vp->dstart = (CORE_ADDR) ldip->ldinfo_dataorg;
vp->dend = vp->dstart + ldip->ldinfo_datasize;
- if (vp->tadj != 0) {
- vp->tstart += vp->tadj;
- vp->tend += vp->tadj;
- }
+ if (vp->tadj != 0)
+ {
+ vp->tstart += vp->tadj;
+ vp->tend += vp->tadj;
+ }
/* Unless this is the exec file,
add our sections to the section table for the core target. */