From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8118 invoked by alias); 26 Jun 2002 02:35:21 -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 8097 invoked from network); 26 Jun 2002 02:35:10 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 26 Jun 2002 02:35:10 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 7665B3C62; Tue, 25 Jun 2002 22:34:49 -0400 (EDT) Message-ID: <3D192849.3080904@cygnus.com> Date: Tue, 25 Jun 2002 19:35:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020613 X-Accept-Language: en-us, en MIME-Version: 1.0 To: tromey@redhat.com Cc: gdb-patches@sources.redhat.com Subject: Re: RFA: add_setshow_cmd_full References: <878z53dqr9.fsf@fleche.redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-06/txt/msg00522.txt.bz2 [fernando asked me to pick up a bit of this] > 2002-06-25 Tom Tromey > > * cli/cli-decode.c (add_setshow_cmd_full): New function. > (add_setshow_cmd): Use it. > * command.h (add_setshow_cmd_full): Declare. Please be careful to configure GDB with --enable-gdb-build-warnings=,-Werror so that it is compiled with the -Werror flag. Anyway, this is wrong ... > +extern struct cmd_list_element *add_setshow_cmd_full (char *name, > + enum command_class class, But this is approved .... > +void > +add_setshow_cmd_full (char *name, > + enum command_class class, > + var_types var_type, void *var, > + char *set_doc, char *show_doc, > + cmd_sfunc_ftype *set_func, cmd_sfunc_ftype *show_func, > + struct cmd_list_element **set_list, > + struct cmd_list_element **show_list, > + struct cmd_list_element **set_result, > + struct cmd_list_element **show_result) Don't forget to remove they stray declaration: > +extern struct cmd_list_element *add_setshow_cmd (char *name, > + enum command_class class, > + var_types var_type, void *var, > + char *set_doc, char *show_doc, from the change. Andrew