home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mips / 812 < prev    next >
Encoding:
Text File  |  1992-07-27  |  1016 b   |  37 lines

  1. Newsgroups: comp.sys.mips
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!usc!noiro.acs.uci.edu!gordius!gordius!dan
  3. From: dan@gordian.com (Dan Lambright)
  4. Subject: problem with getting the libmld function ldlitem to work
  5. Message-ID: <1992Jul28.002309.10807@gordian.com>
  6. Sender: news@gordian.com
  7. Organization: Gordian; Costa Mesa, CA
  8. Date: Tue, 28 Jul 1992 00:23:09 GMT
  9. Lines: 26
  10.  
  11. I have not been able to get the function ldlitem to work.  The following
  12. program should access the line number entries in the symbol tables.
  13. But ldlitem just returns "FAILURE"..
  14.  
  15. {
  16.         unsigned short ii;
  17.     LINER linent;
  18.  
  19.         ld=ldopen("test2.mon",0);  
  20.  
  21.         for (ii=0; ii<10; ii++) {
  22.             if (ldlitem(ld,ii,linent)==FAILURE) printf("failed!\n");
  23.             else printf("line #%d is %x\n",ii,linent);
  24.         }
  25. }
  26.  
  27. test2.mon is compiled straigforwardly- 
  28.  
  29. cc -g -c test.c
  30. ld -o test2.mon -g test.o -lc
  31.  
  32. Anyone out there have any experience with getting line number
  33. entries out of the symbol table? 
  34.  
  35. Dan Lambright
  36. dan@gordian.com
  37.