From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6420 invoked by alias); 10 Dec 2003 22:26:33 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 6397 invoked from network); 10 Dec 2003 22:26:32 -0000 Received: from unknown (HELO mail-out4.apple.com) (17.254.13.23) by sources.redhat.com with SMTP; 10 Dec 2003 22:26:32 -0000 Received: from mailgate1.apple.com (a17-128-100-225.apple.com [17.128.100.225]) by mail-out4.apple.com (8.12.10/8.12.9) with ESMTP id hBAMQVnc024414 for ; Wed, 10 Dec 2003 14:26:31 -0800 (PST) Received: from scv2.apple.com (scv2.apple.com) by mailgate1.apple.com (Content Technologies SMTPRS 4.2.1) with ESMTP id ; Wed, 10 Dec 2003 14:26:29 -0800 Received: from [17.201.22.21] (moleja.apple.com [17.201.22.21]) by scv2.apple.com (8.12.9/8.12.9) with ESMTP id hBAMQ4EV026916; Wed, 10 Dec 2003 14:26:08 -0800 (PST) In-Reply-To: <3FD75E64.1020508@gnu.org> References: <16319.64137.458928.417189@nick.uklinux.net> <3FC3F85F.8050007@gnu.org> <16332.423.456414.834703@nick.uklinux.net> <16341.13503.256676.933542@nick.uklinux.net> <3FD75E64.1020508@gnu.org> Mime-Version: 1.0 (Apple Message framework v606) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit Cc: Nick Roberts , gdb-patches@sources.redhat.com From: Jason Molenda Subject: Re: RFC (gdb/mi): -stack-list-locals + REVISED PATCH Date: Wed, 10 Dec 2003 22:26:00 -0000 To: Andrew Cagney X-SW-Source: 2003-12/txt/msg00306.txt.bz2 On Dec 10, 2003, at 9:56 AM, Andrew Cagney wrote: > and then the very mechanical: > > enum print_values print_values; > > if (strcmp (argv[0], "0") == 0 > || strcmp (argv[0], "no-values") == 0) > print_values = PRINT_NO_VALUES; > else if (strcmp (argv[0], "1") == 0 > || strcmp (argv[0], "all-values") == 0) > print_values = PRINT_ALL_VALUES; > else if (strcmp (argv[0], "simple-values") == 0) > print_values = PRINT_SIMPLE_VALUES; > else > error ("..."); This would be a help for us at Apple, as well. Right now we have a non-standard meaning for -stack-list-locals 2, and the FSF gdb will have a different meaning for 2 with this patch going in. No complaints or anything, but it's unpleasant. If 1 == all-values and there is a new 'simple-values' (or whatever) added, we can easily add a 'apple-values' which are the particular things our GUI wants without fear of conflicting. Jason