Getting call stack (like dbx where cmd)
From: Adrian (notvalid_at_null.net)
Date: 10/29/04
- Next message: Ian Northeast: "Re: FTP get from MVS to AIX"
- Previous message: Dale Talcott: "Re: Solaris AIX feature mapping :)"
- Next in thread: Paul Pluzhnikov: "Re: Getting call stack (like dbx where cmd)"
- Reply: Paul Pluzhnikov: "Re: Getting call stack (like dbx where cmd)"
- Reply: CBFalconer: "Re: Getting call stack (like dbx where cmd)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 29 Oct 2004 11:27:55 -0700
Is there a way (understandably non-portable) to get the
call stack from within a function? That is, assuming the
application has been compiled with symbols, get the list
of calling function names (similar to dbx "where" command").
I am working with IBM compiler and AIX but any other
OS/compiler solution would be interesting as well.
To answer the inevitable question why I want this,
I am writing a simple profiler for my library. However,
within the library I want to distinguish which part of
the application I was called from....
Thanks for any ideas or pointers,
Adrian
- Next message: Ian Northeast: "Re: FTP get from MVS to AIX"
- Previous message: Dale Talcott: "Re: Solaris AIX feature mapping :)"
- Next in thread: Paul Pluzhnikov: "Re: Getting call stack (like dbx where cmd)"
- Reply: Paul Pluzhnikov: "Re: Getting call stack (like dbx where cmd)"
- Reply: CBFalconer: "Re: Getting call stack (like dbx where cmd)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|