From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31088 invoked by alias); 14 Dec 2006 01:54:00 -0000 Received: (qmail 31021 invoked by uid 22791); 14 Dec 2006 01:53:59 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 14 Dec 2006 01:53:53 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1GufnD-0001MD-3I; Wed, 13 Dec 2006 20:53:51 -0500 Date: Thu, 14 Dec 2006 01:54:00 -0000 From: Daniel Jacobowitz To: Luo Yi Cc: gdb@sourceware.org Subject: Re: How can I define the breakpoint-commands in my gdbinit file Message-ID: <20061214015351.GA5203@nevyn.them.org> Mail-Followup-To: Luo Yi , gdb@sourceware.org References: <77d8667c0612131751v2913b5d3l31f5d14fd94cdf40@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <77d8667c0612131751v2913b5d3l31f5d14fd94cdf40@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-12/txt/msg00121.txt.bz2 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