From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28172 invoked by alias); 14 Dec 2006 04:27:36 -0000 Received: (qmail 28163 invoked by uid 22791); 14 Dec 2006 04:27:35 -0000 X-Spam-Check-By: sourceware.org Received: from heller.inter.net.il (HELO heller.inter.net.il) (192.114.186.73) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 14 Dec 2006 04:27:30 +0000 Received: from HOME-C4E4A596F7 (IGLD-83-130-199-146.inter.net.il [83.130.199.146]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id BGM56394 (AUTH halo1); Thu, 14 Dec 2006 06:27:24 +0200 (IST) Date: Thu, 14 Dec 2006 04:27:00 -0000 Message-Id: From: Eli Zaretskii To: "Luo Yi" CC: gdb@sourceware.org In-reply-to: <77d8667c0612131751v2913b5d3l31f5d14fd94cdf40@mail.gmail.com> (firingme@gmail.com) Subject: Re: How can I define the breakpoint-commands in my gdbinit file Reply-to: Eli Zaretskii References: <77d8667c0612131751v2913b5d3l31f5d14fd94cdf40@mail.gmail.com> 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/msg00124.txt.bz2 > Date: Thu, 14 Dec 2006 09:51:19 +0800 > From: "Luo Yi" > > 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. There are bugs in nesting canned commands that are finished by `end'. I have a local patch to solve at least some of the bugs, but I never got to apply it because I was requested to show the results of the test suite after applying the patch, and never had time to install expect and run the suite. I could try to dig out that patch, if you want to try it.