From 523ca9d0a2143eef5728c7ac124958508cee0cfc Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Thu, 5 May 1994 19:07:10 +0000 Subject: [PATCH] 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. --- gdb/rs6000-nat.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c index e3d626f58a9..1c80a7a9807 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. */ -- 2.30.2