home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mips
- Path: sparky!uunet!elroy.jpl.nasa.gov!usc!noiro.acs.uci.edu!gordius!gordius!dan
- From: dan@gordian.com (Dan Lambright)
- Subject: problem with getting the libmld function ldlitem to work
- Message-ID: <1992Jul28.002309.10807@gordian.com>
- Sender: news@gordian.com
- Organization: Gordian; Costa Mesa, CA
- Date: Tue, 28 Jul 1992 00:23:09 GMT
- Lines: 26
-
- I have not been able to get the function ldlitem to work. The following
- program should access the line number entries in the symbol tables.
- But ldlitem just returns "FAILURE"..
-
- {
- unsigned short ii;
- LINER linent;
-
- ld=ldopen("test2.mon",0);
-
- for (ii=0; ii<10; ii++) {
- if (ldlitem(ld,ii,linent)==FAILURE) printf("failed!\n");
- else printf("line #%d is %x\n",ii,linent);
- }
- }
-
- test2.mon is compiled straigforwardly-
-
- cc -g -c test.c
- ld -o test2.mon -g test.o -lc
-
- Anyone out there have any experience with getting line number
- entries out of the symbol table?
-
- Dan Lambright
- dan@gordian.com
-