thanks for the answer, and after that how do i see how the stack frame is created.?
On 20 June 2012 22:33, Adam Beneschan <a...@irvine.com> wrote: > > break *&main > > > that is the gdb command? > > Yes. "break main" will break at the instruction past the prologue, > but "break *&main" just uses &main, which is the address of main, as > the breakpoint address. I've tested this, but I can't say for certain > it will work with every version of gdb. > > -- Adam >