This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Get a whole call stack through the running of target program


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]