Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: mark@ncgrafix.demon.co.uk (Mark Wassell)
Subject: Re: Need help at extracting debug line info from executable.
Date: Tue, 3 Jan 1995 10:25:30 GMT	[thread overview]
Message-ID: <D1trMI.DDG@ncgrafix.demon.co.uk> (raw)
In-Reply-To: D1J1BD.2LF@world.std.com


In article <D1J1BD.2LF@world.std.com> 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         


  reply	other threads:[~1995-01-03 10:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-12-28 15:21 Need help at extracting debug line info from executable Steven W Orr
1995-01-03 10:25 ` Mark Wassell [this message]
1995-01-04 14:25   ` Jeff Diewald
1995-01-10 16:18   ` Tim Lucia
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox