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-10 08:18:44 PST Path: nntp.gmd.de!newsserver.jvnc.net!news.cac.psu.edu!news.pop.psu.edu!psuvax1!uwm.edu!news.moneng.mei.com!hookup!swrinde!gatech!bloom-beacon.mit.edu!crl.dec.com!crl.dec.com!jac.zko.dec.com!savvy.zko.dec.com!lucia From: lucia@zko.dec.com (Tim Lucia) Newsgroups: comp.unix.osf.misc,comp.unix.osf.osf1 Subject: Re: Need help at extracting debug line info from executable. Date: 10 Jan 1995 16:18:44 GMT Organization: Digital Equipment Corporation Sender: lucia@savvy.zko.dec.com (Tim Lucia) Distribution: world Message-ID: <3euc14$oi8@jac.zko.dec.com> References: Reply-To: lucia@zko.dec.com (Tim Lucia) NNTP-Posting-Host: savvy.zko.dec.com X-Newsreader: mxrn 6.18-28 Xref: nntp.gmd.de comp.unix.osf.misc:2319 comp.unix.osf.osf1:7169 In article , 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