From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16820 invoked by alias); 25 Jul 2006 06:19:10 -0000 Received: (qmail 16805 invoked by uid 22791); 25 Jul 2006 06:19:10 -0000 X-Spam-Check-By: sourceware.org Received: from shadow.prohost.de (HELO shadow.prohost.de) (216.71.84.228) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 25 Jul 2006 06:19:07 +0000 Received: from boulder (p54A7E2DF.dip.t-dialin.net [84.167.226.223]) by shadow.prohost.de (8.11.6/8.11.6) with ESMTP id k6P6J5d29791; Tue, 25 Jul 2006 08:19:05 +0200 Received: from localhost (localhost [127.0.0.1]) by boulder (Postfix) with ESMTP id 4BE6E62C; Tue, 25 Jul 2006 08:19:04 +0200 (CEST) Received: from boulder ([127.0.0.1]) by localhost (boulder.lipieda [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 55739-06; Tue, 25 Jul 2006 08:19:03 +0200 (CEST) Received: from [192.168.129.218] (LI50.lipieda [192.168.129.218]) by boulder (Postfix) with ESMTP id 6EA4C62B; Tue, 25 Jul 2006 08:19:03 +0200 (CEST) Message-ID: <44C5B7D7.3090607@lipowsky.de> Date: Tue, 25 Jul 2006 06:45:00 -0000 From: Efim Monyak User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Andrew STUBBS CC: gdb@sources.redhat.com Subject: Re: define command References: <44C4FDA9.7030207@lipowsky.de> <44C50E86.8010909@st.com> In-Reply-To: <44C50E86.8010909@st.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit 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/msg00168.txt.bz2 Andrew STUBBS schrieb: > Efim Monyak wrote: >> sorry have clicked on reply and don't checked the address. >> >> Is where a possibility to implement a similar functionality for GDB >> 6.4.0 with no buggy features? > > Assuming you only source the script with the define once: > > set $__example_counter = 0 > define example > set $__example_counter += 1 > end > I need evaluate this value also, I must recognize is the "example" function called first time or no. But it is not possible to use the argument.