Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
To: ZengNan <znxmu@yahoo.com.cn>
Cc: gdb@sources.redhat.com
Subject: Re: Get a whole call stack through the running of target program
Date: Fri, 28 Oct 2005 18:53:00 -0000	[thread overview]
Message-ID: <1130525312.8742.194.camel@localhost.localdomain> (raw)
In-Reply-To: <20051027025240.97987.qmail@web15702.mail.cnb.yahoo.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


      parent reply	other threads:[~2005-10-28 18:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-27  2:52 ZengNan
2005-10-27  5:28 ` Neo Jia
2005-10-27 12:44 ` Daniel Jacobowitz
2005-10-28 18:53 ` Ramana Radhakrishnan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1130525312.8742.194.camel@localhost.localdomain \
    --to=ramana.radhakrishnan@codito.com \
    --cc=gdb@sources.redhat.com \
    --cc=znxmu@yahoo.com.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox