From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27887 invoked by alias); 16 Apr 2007 07:14:12 -0000 Received: (qmail 27877 invoked by uid 22791); 16 Apr 2007 07:14:11 -0000 X-Spam-Check-By: sourceware.org Received: from lon-del-03.spheriq.net (HELO lon-del-03.spheriq.net) (195.46.50.99) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 16 Apr 2007 08:14:08 +0100 Received: from lon-out-01.spheriq.net ([195.46.50.129]) by lon-del-03.spheriq.net with ESMTP id l3G7E5KH015271 for ; Mon, 16 Apr 2007 07:14:05 GMT Received: from lon-cus-01.spheriq.net (lon-cus-01.spheriq.net [195.46.50.37]) by lon-out-01.spheriq.net with ESMTP id l3G7E3bD027081 for ; Mon, 16 Apr 2007 07:14:03 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by lon-cus-01.spheriq.net with ESMTP id l3G7DxDD005889 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Mon, 16 Apr 2007 07:14:03 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id A540BDA45 for ; Mon, 16 Apr 2007 07:13:58 +0000 (GMT) Received: from mail1.gnb.st.com (mail1.gnb.st.com [164.129.119.58]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 44824473B4 for ; Mon, 16 Apr 2007 07:13:58 +0000 (GMT) Received: from [10.129.127.155] (GNB401275.gnb.st.com [10.129.127.155]) by mail1.gnb.st.com (MOS 3.7.5a-GA) with ESMTP id CLN02000 (AUTH leducs); Mon, 16 Apr 2007 09:13:56 +0200 (CEST) Message-ID: <46232233.2050004@st.com> Date: Mon, 16 Apr 2007 07:14:00 -0000 From: Sebastien LE DUC User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: gdb@sourceware.org Subject: user defined command Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2007-04/txt/msg00097.txt.bz2 Hi all, I am trying to define a user defined command in which I want to set a breakpoint and associate a command to it: define nextev tbreak *traceSched if $r2h == 0 commands silent tbreak *$r3h cont end cont end The problem is that gdb takes the first "end" as the end of the definition of the command instead of the end of the commands associated to the breakpoint. so I get an error for the second "end" Anybody knows how I can achieve what I want? Thanks in advance Sebastien Le Duc