This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Get a whole call stack through the running of target program
- From: Ramana Radhakrishnan <ramana dot radhakrishnan at codito dot com>
- To: ZengNan <znxmu at yahoo dot com dot cn>
- Cc: gdb at sources dot redhat dot com
- Date: Sat, 29 Oct 2005 00:18:32 +0530
- Subject: Re: Get a whole call stack through the running of target program
- References: <20051027025240.97987.qmail@web15702.mail.cnb.yahoo.com>
- Reply-to: ramana dot radhakrishnan at codito dot com
Hi,
GDB can't do it per se but scripting on top could help you do this.
Look at atree. http://atree.sourceforge.net It could give you the
complete activation tree. Its some scripting on top of gdb .
atree runs a program through GDB. It sets breakpoints on all functions
and makes a log of all the functions that got called. The log contains
the arguments and return values of the functions. This log is then
turned into a tree â a node in the tree is a function call and its
children are the functions that it called, in order.
cheers
Ramana
On Thu, 2005-10-27 at 10:52 +0800, ZengNan wrote:
> Can gdb give the whole call stack from the beginning to the termination of the target program, so
> I can see the flow of the algorithm.
>
>
>
>
>
>
> ___________________________________________________________
> éèåèGéçïäåçäçæååéäéæèåéç
> http://cn.mail.yahoo.com