From: lucia@zko.dec.com (Tim Lucia)
Subject: Re: Need help at extracting debug line info from executable.
Date: 10 Jan 1995 16:18:44 GMT [thread overview]
Message-ID: <3euc14$oi8@jac.zko.dec.com> (raw)
In-Reply-To: D1trMI.DDG@ncgrafix.demon.co.uk
In article <D1trMI.DDG@ncgrafix.demon.co.uk>, mark@ncgrafix.demon.co.uk (Mark Wassell) writes:
|>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).
DECladebug does exactly this. If you are running on OSF V3.0, simply
attach to the running process, hit control-C thereby temporarily stopping
it, and then ask DECladebug 'where'. Instant stack trace. You may have
to load shared libraries along the way, but why re-invent the wheel?
It's probably unsafe to try and do the stack trace on a *running* program
anyway, since while you are figuring out the stack trace, it will be
changing.
===========================================================================
Timothy J. Lucia
DECladebug
Digital Equipment Corporation
lucia@zko.dec.com
prev parent reply other threads:[~1995-01-10 16:18 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
1995-01-04 14:25 ` Jeff Diewald
1995-01-10 16:18 ` Tim Lucia [this message]
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