Re: Breakpoint on first instruction in program
Adam Beneschan <[email protected]> Wed, 20 Jun 2012 14:33:51 -0700
| Newsgroups | gmane.comp.gdb.general |
|---|---|
| Message-ID | <[email protected]> |
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