From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4007 invoked by alias); 3 Nov 2005 13:11:09 -0000 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 Received: (qmail 3843 invoked by uid 22791); 3 Nov 2005 13:10:49 -0000 Received: from fra-del-04.spheriq.net (HELO fra-del-04.spheriq.net) (195.46.51.100) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 03 Nov 2005 13:10:49 +0000 Received: from fra-out-01.spheriq.net (fra-out-01.spheriq.net [195.46.51.129]) by fra-del-04.spheriq.net with ESMTP id jA3DAfkJ018143 for ; Thu, 3 Nov 2005 13:10:43 GMT Received: from fra-cus-01.spheriq.net (fra-cus-01.spheriq.net [195.46.51.37]) by fra-out-01.spheriq.net with ESMTP id jA3DAdRu031146 for ; Thu, 3 Nov 2005 13:10:40 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by fra-cus-01.spheriq.net with ESMTP id jA3DAcEc020891 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Thu, 3 Nov 2005 13:10:39 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 7786BDA41 for ; Thu, 3 Nov 2005 13:10:38 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 60012) id 36E0C4734C; Thu, 3 Nov 2005 13:13:31 +0000 (GMT) Received: from zeta.dmz-eu.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id CF93A75969 for ; Thu, 3 Nov 2005 13:13:30 +0000 (UTC) Received: from mail1.bri.st.com (mail1.bri.st.com [164.129.8.218]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 1836A47346 for ; Thu, 3 Nov 2005 13:13:29 +0000 (GMT) Received: from [164.129.15.13] (terrorhawk.bri.st.com [164.129.15.13]) by mail1.bri.st.com (MOS 3.5.8-GR) with ESMTP id CFR00440 (AUTH "andrew stubbs"); Thu, 3 Nov 2005 13:10:36 GMT Message-ID: <436A0BD2.5080505@st.com> Date: Thu, 03 Nov 2005 13:11:00 -0000 From: Andrew STUBBS User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: GDB List Subject: $argc variable Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-O-Spoofed: Not Scanned X-O-General-Status: No X-O-Spam1-Status: Not Scanned X-O-Spam2-Status: Not Scanned X-O-URL-Status: Not Scanned X-O-Virus1-Status: No X-O-Virus2-Status: Not Scanned X-O-Virus3-Status: No X-O-Virus4-Status: No X-O-Virus5-Status: Not Scanned X-O-Image-Status: Not Scanned X-O-Attach-Status: Not Scanned X-SpheriQ-Ver: 4.1.07 X-SW-Source: 2005-11/txt/msg00060.txt.bz2 Hi, There was a proposal here: http://sources.redhat.com/ml/gdb-patches/2005-04/msg00055.html Has anything come of it? I can't find anything in cli-script.c. This is a feature I would very much like to see. SuperH/ST has had a very similar feature for quite some time now (long before the above proposal) in which $argc is a proper convenience variable. I would submit our version, but I feel that the above is a better approach (implementation details aside) - it does not suffer from problems with recursion. Is there any chance of resurrecting this idea? Thanks Andrew Stubbs