Getting pissed off by gdb. Please help with stepping in.

Pedro Alves pedro@codesourcery.com
Thu Mar 18 15:21:00 GMT 2010


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



More information about the Gdb mailing list