Re: Breakpoint on first instruction in program
Iurie <[email protected]> Wed, 20 Jun 2012 22:47:25 +0100
| Newsgroups | gmane.comp.gdb.general |
|---|---|
| Message-ID | <CAFpdKSDu+EfwX_0B4CW3yKCG27eCKeiHj1ZDqP2qmvvmWvCdNQ@mail.gmail.com> |
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 <[email protected]> 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 >