From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29156 invoked by alias); 23 Jun 2002 21:33:28 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 29146 invoked from network); 23 Jun 2002 21:33:25 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 23 Jun 2002 21:33:25 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id AE5883C9E; Sun, 23 Jun 2002 17:33:14 -0400 (EDT) Message-ID: <3D163E9A.1000106@cygnus.com> Date: Sun, 23 Jun 2002 14:33: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 List Subject: Re: Questions about gdb and gettext References: <87bsa1pvtv.fsf@fleche.redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-06/txt/msg00208.txt.bz2 > I spent a little time today looking at add_show_from_set. One idea I > had was to make a new `add_set_and_show' function which would work > something like this: > > add_set_and_show (char *name, enum command_class class, > var_types var_type, void *var, > char *first_setline, char *first_showline, > char *rest_of_docs, struct cmd_list_element **list) > > The idea here is to factor out the first sentence into separate `show' > and `set' sentences, and then keep the rest of the help text the same. FYI, Look at add_setshow_boolean_cmd(). The general direction is for the generic commands to go away being replaced by more specific, stronger typed, and i18n frendly commands. Andrew