This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: How can I define the breakpoint-commands in my gdbinit file
- From: Daniel Jacobowitz <drow at false dot org>
- To: Luo Yi <firingme at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Wed, 13 Dec 2006 20:53:51 -0500
- Subject: Re: How can I define the breakpoint-commands in my gdbinit file
- References: <77d8667c0612131751v2913b5d3l31f5d14fd94cdf40@mail.gmail.com>
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