home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / gnu / gdb / bug / 1225 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  1.9 KB

  1. Path: sparky!uunet!know!cass.ma02.bull.com!mips2!news.bbn.com!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!andrew.cmu.edu!rr2b+
  2. From: rr2b+@andrew.cmu.edu (Robert Andrew Ryan)
  3. Newsgroups: gnu.gdb.bug
  4. Subject: Fix for RS/6000 dynamic linking
  5. Message-ID: <Ef0dLaW00WoiN32UJY@andrew.cmu.edu>
  6. Date: 12 Nov 92 07:35:34 GMT
  7. Sender: gnulists@ai.mit.edu
  8. Distribution: gnu
  9. Organization: GNUs Not Usenet
  10. Lines: 54
  11. Approved: bug-gdb@prep.ai.mit.edu
  12.  
  13. Thu Nov 05 23:04:38 EST 1992 Rob Ryan (rr2b@andrew.cmu.edu)
  14.  
  15.     * xcoffexec.c: fixed a bug where if a object has no member, and
  16.       the stat pointer passed to vmap_symtab was NULL, the wrong vmap
  17.       entries would be modified.  Fixes behavior where attempting to
  18.       load symbols for a module with no member would mess up already
  19.       read in symbols.
  20.  
  21.  
  22. *** xcoffexec.c.orig    Wed Oct  7 20:31:53 1992
  23. --- xcoffexec.c    Thu Nov  5 23:00:56 1992
  24. ***************
  25. *** 392,398 ****
  26.       } else if (vp->member[0]) {
  27.         /* no match, and member present, not this one. */
  28.         continue;
  29. !     } else {
  30.         struct stat si;
  31.         FILE *io;
  32.         
  33. --- 392,401 ----
  34.       } else if (vp->member[0]) {
  35.         /* no match, and member present, not this one. */
  36.         continue;
  37. !     } else if (vip) {
  38. !          /* if we weren't given a stat structure
  39. !           that doesn't mean any old bfd will match...
  40. !           -Rob Ryan 11/5/92*/
  41.         struct stat si;
  42.         FILE *io;
  43.         
  44. ***************
  45. *** 408,417 ****
  46.         if (fstat(fileno(io), &si) < 0)
  47.           fatal("cannot fstat BFD for sym");
  48.         
  49. !       if (vip && (si.st_dev != vip->st_dev
  50.             || si.st_ino != vip->st_ino))
  51.           continue;
  52. !     }
  53.       
  54.       if (vp->tstart != old_start) {
  55.   
  56. --- 411,420 ----
  57.         if (fstat(fileno(io), &si) < 0)
  58.           fatal("cannot fstat BFD for sym");
  59.         
  60. !       if ((si.st_dev != vip->st_dev
  61.             || si.st_ino != vip->st_ino))
  62.           continue;
  63. !     } else continue;
  64.       
  65.       if (vp->tstart != old_start) {
  66.  
  67.