This is the mail archive of the gdb@sources.redhat.com 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: Output the filename ,the function name and the line numberafter returning from a function call


Thanks Bob.

I haven't explained much about my requirement.
Ofcourse finish does what you said.
Bud what I am doing is that

# gdb -x command | tee output
where command contains 1000000 number of "s" in it
So that I will get the flow from the beginning of the program to the end
including where I give the input...
So the output should contain the funs that has been called and returned.
The program MAY contain several such functions and I cannot point where
it occurs.

Thanks again for the reply and expecting the same again.

-Murugesan

On Wed, 2004-02-11 at 18:38, Bob Rossi wrote:
> On Wed, Feb 11, 2004 at 03:53:52PM +0530, murugesan wrote:
> > Hello all,
> > 	As you all know gdb outputs the filename ,the function name and the
> > line number after returning from a function call.
> > But this does not happen when a function has a parameter as another
> > function.
> 
> Did you use the 'finish' command to return from the function call? Or do
> you just do a 'next'? This might make a difference.
> 
> Bob Rossi



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