This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
How can I define the breakpoint-commands in my gdbinit file
- From: "Luo Yi" <firingme at gmail dot com>
- To: gdb at sourceware dot org
- Date: Thu, 14 Dec 2006 09:51:19 +0800
- Subject: How can I define the breakpoint-commands in my gdbinit file
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.