From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,dd8385cbf9e09a72 X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,dd8385cbf9e09a72 X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1995-01-03 11:03:01 PST Newsgroups: comp.unix.osf.misc,comp.unix.osf.osf1 Path: nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!pipex!demon!betanews.demon.co.uk!ncgrafix.demon.co.uk!mark From: mark@ncgrafix.demon.co.uk (Mark Wassell) Subject: Re: Need help at extracting debug line info from executable. Message-ID: Sender: news@ncgrafix.demon.co.uk (News Keeper) NntpPostingHost: oa2 ReplyTo: mark@ncgrafix.demon.co.uk Organization: N.C.Graphics References: Date: Tue, 3 Jan 1995 10:25:30 GMT Xref: nntp.gmd.de comp.unix.osf.misc:2219 comp.unix.osf.osf1:7082 In article steveo@world.std.com (Steven W Orr) wrote: >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'm also trying to do something similar (see below) but haven't really got much further but an idea I did have was to look at the source code for gdb (the GNU debugger) for some ideas on how to extract debug information. > ..am left with that confused and empty Yes, I also have this confused and empty feeling when reading the documentation. What I'm trying to do is to write some code that prints a calling trace of a running program on demand. Using the ld* man pages I have managed to come up with something that converts a pc into a function and that can skip back through the stack to print a trace. However, if there are functions from shared libraries in the way then it fails (as pc>function and frame information won't be stored in the executable file). ___ ___ |\ | | Mark Wassell | \ |\ \ | N.C. Graphics, | \| \__ \__| Waterbeach, Cambridge N.C. Graphics (Cambridge) Ltd. Tel:(0223) 861539 UK, CB5 9NN