gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Breakpoint on first instruction in program


From: Iurie
Subject: Re: Breakpoint on first instruction in program
Date: Wed, 20 Jun 2012 22:47:25 +0100

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 <address@hidden> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]