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: Getting pissed off by gdb. Please help with stepping in.


> From: Pedro Alves <pedro@codesourcery.com>
> Date: Thu, 18 Mar 2010 15:21:48 +0000
> Cc: Doug Evans <dje@google.com>,
>  Eli Zaretskii <eliz@gnu.org>,
>  temp@sourceboost.com
> 
> On Thursday 18 March 2010 15:10:41, Doug Evans wrote:
> > The behaviour Pavel describes in his message, but which I do not see, is this:
> > 
> > (gdb) f
> > #0  bar () at stepout.c:4
> > 4       int bar () { return 1; }
> > (gdb) s
> > main () at stepout.c:12
> > 12        return 0;
> > (gdb)
> > 
> > Note that we've stepped out of bar, into foo, and back out of foo.
> 
> He most probably used "next" when he said:
> 
> > I do a step out and wtf... Instead of getting back to the line
> > where 'foo' is called I get passed it.

I would expect "next" on line 4 to behave the same as "step", since
there's no function call there.


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