|
From: | Iurie |
Subject: | Re: Breakpoint on first instruction in program |
Date: | Wed, 20 Jun 2012 22:47:25 +0100 |
break *&main
Yes. "break main" will break at the instruction past the prologue,
> that is the gdb command?
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
[Prev in Thread] | Current Thread | [Next in Thread] |