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

Reply via email to