How can I define the breakpoint-commands in my gdbinit file
Daniel Jacobowitz
drow@false.org
Thu Dec 14 01:54:00 GMT 2006
On Thu, Dec 14, 2006 at 09:51:19AM +0800, Luo Yi wrote:
> How can I define the breakpoint-commands in my gdbinit file ?
>
> define b1
> b *0x805d3bf
> commands
> silent
> printf "ne, eax = %x\n", $eax
> end <<< ------------
> end
>
> the commands need a end instruction which can't appear in the middle
> of the gdbinit file.
It should work fine. Are you using the latest GDB?
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb
mailing list