forked from Imagelibrary/binutils-gdb
* infcmd.c (set_environment_command): Avoid skipping first
char of env value if an '=' appears in it. Bug report and fix by Mark Jungerman, <maj@lucid.com>. Thu Nov 5 23:04:38 1992 Rob Ryan (rr2b@andrew.cmu.edu) * xcoffexec.c (vmap_symtab): fixed a bug where if a object has no member, and the stat pointer passed to vmap_symtab was NULL, the wrong vmap entries would be modified. Fixes behavior where attempting to load symbols for a module with no member would mess up already read in symbols.
This commit is contained in:
@@ -392,27 +392,28 @@ struct stat *vip;
|
||||
} else if (vp->member[0]) {
|
||||
/* no match, and member present, not this one. */
|
||||
continue;
|
||||
} else {
|
||||
} else if (vip) {
|
||||
/* No match, and no member. need to be sure.
|
||||
If we were given a stat structure, see if the open file
|
||||
underlying this BFD matches. */
|
||||
struct stat si;
|
||||
FILE *io;
|
||||
|
||||
/*
|
||||
* no match, and no member. need to be sure.
|
||||
*/
|
||||
io = bfd_cache_lookup(objfile->obfd);
|
||||
if (!io)
|
||||
fatal("cannot find BFD's iostream for sym");
|
||||
/*
|
||||
* see if we are referring to the same file
|
||||
*/
|
||||
|
||||
/* see if we are referring to the same file */
|
||||
if (fstat(fileno(io), &si) < 0)
|
||||
fatal("cannot fstat BFD for sym");
|
||||
|
||||
if (vip && (si.st_dev != vip->st_dev
|
||||
if ((si.st_dev != vip->st_dev
|
||||
|| si.st_ino != vip->st_ino))
|
||||
continue;
|
||||
} else {
|
||||
continue; /* No stat struct: no way to match it */
|
||||
}
|
||||
|
||||
|
||||
if (vp->tstart != old_start) {
|
||||
|
||||
/* Once we find a relocation base address for one of the symtabs
|
||||
|
||||
Reference in New Issue
Block a user