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: Adam Beneschan
Subject: Re: Breakpoint on first instruction in program
Date: Wed, 20 Jun 2012 14:33:51 -0700

 
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]