From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,dd8385cbf9e09a72,start X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,dd8385cbf9e09a72,start X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-12-28 13:59:04 PST Newsgroups: comp.unix.osf.misc,comp.unix.osf.osf1 Path: nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!pipex!uunet!world!steveo From: steveo@world.std.com (Steven W Orr) Subject: Need help at extracting debug line info from executable. Message-ID: Organization: SysLang, Inc. Date: Wed, 28 Dec 1994 15:21:13 GMT Xref: nntp.gmd.de comp.unix.osf.misc:2180 comp.unix.osf.osf1:7037 Running Alpha OSF1 and I need to access the debug line data in the ECOFF executable. Specifically, I need to perform the only two operations that are possible: (I define a compilation number to refer to a specific compiled unit in an executable) 1. I need a function that takes a compilation number, a filename or number and a line number, and returns it's pc address. 2. I need the inverse, i.e., I need to take a pc and turn it into a compile number, a filename, and a line number. I have read the assembler manual in the Bookreader, and in particular section 8.2.2 (Symbol Table/line Numbers) and am left with that confused and empty feeling. I have read the man pages for (4) ldfcn and don't see how that helps with the line numbers. If anyone can help, give me a pointer, point to something better to read, or send me a code frag that will jumpstart me, I'd be major grateful. Many thanks in advance. -- ----------Time flies like the wind. Fruit flies like a banana.---------------- --------Stranger things have happened but none stranger than this.------------- Steven W. Orr steveo@uniprise.com ---------------"Listen to me! We are all individuals."-------------------------