From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11749 invoked by alias); 24 Mar 2002 00:22:48 -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 11737 invoked from network); 24 Mar 2002 00:22:47 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by 209.249.29.67 with SMTP; 24 Mar 2002 00:22:47 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 4C74B3DCE; Sat, 23 Mar 2002 19:22:34 -0500 (EST) Message-ID: <3C9D1C49.9000700@cygnus.com> Date: Sat, 23 Mar 2002 16:22:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.8) Gecko/20020210 X-Accept-Language: en-us MIME-Version: 1.0 To: Fernando Nasser Cc: gdb-patches@sources.redhat.com Subject: Re: [rfc/cli:rfa] Don't copy func() into show from set .. References: <3C953AF0.7040504@cygnus.com> <3C960F4F.B356B226@redhat.com> <3C9616D3.3060300@cygnus.com> <3C96173E.3879600B@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-03/txt/msg00450.txt.bz2 > Andrew Cagney wrote: > >> > >> > Andrew, I agree with all that you say before but I have some >> > additional thoughts. > >> >> I'll leave it for a week then commit it (if that is ok) ..... >> > > > Sure. It is now in. thanks! Andrew 2002-03-23 Andrew Cagney * cli/cli-decode.c: Include "gdb_assert.h". (add_set_or_show_cmd): New static function. (add_set_cmd): Rewrite. Use add_set_or_show_cmd. (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy all fields, such as func, from the set command.