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.


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.

-- 
Pedro Alves


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