From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15528 invoked by alias); 22 Jul 2006 20:09:57 -0000 Received: (qmail 15519 invoked by uid 22791); 22 Jul 2006 20:09:57 -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; Sat, 22 Jul 2006 20:09:56 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1G4NnO-0005V2-35; Sat, 22 Jul 2006 16:09:54 -0400 Date: Sat, 22 Jul 2006 20:11:00 -0000 From: Daniel Jacobowitz To: Efim Monyak Cc: gdb@sources.redhat.com Subject: Re: define command Message-ID: <20060722200954.GB21091@nevyn.them.org> Mail-Followup-To: Efim Monyak , gdb@sources.redhat.com References: <44C0FD40.90908@lipowsky.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44C0FD40.90908@lipowsky.de> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00148.txt.bz2 On Fri, Jul 21, 2006 at 06:13:52PM +0200, Efim Monyak wrote: > Hi all, > > is where a possibility to define one counter or variable in the define > command (user defined command). > I need to recognize is this command called first time or no. It is not > possible for me to use arguments. Just pick an unobtrusive name for the variable, and use the new in GDB 6.5 "init-if-undefined" command. -- Daniel Jacobowitz CodeSourcery