From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32628 invoked by alias); 15 May 2002 14:21:44 -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 32609 invoked from network); 15 May 2002 14:21:39 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 15 May 2002 14:21:39 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 9B33D3D61; Wed, 15 May 2002 10:21:48 -0400 (EDT) Message-ID: <3CE26EFC.2070409@cygnus.com> Date: Wed, 15 May 2002 07:21:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0rc1) Gecko/20020429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Richard.Earnshaw@arm.com Cc: Eli Zaretskii , gdb@sources.redhat.com Subject: Re: Multi-arch and user-control of architecture flags References: <200205151411.PAA23686@cam-mail2.cambridge.arm.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg00165.txt.bz2 > > Hmm, yep, that looks like what I want. > > Note, however, there's something odd here... > > /* Add root prefix command for all "set mips"/"show mips" commands */ > add_prefix_cmd ("mips", no_class, set_mips_command, > "Various MIPS specific commands.", > &setmipscmdlist, "set mips ", 0, &setlist); > > add_prefix_cmd ("mips", no_class, show_mips_command, > "Various MIPS specific commands.", > &showmipscmdlist, "show mips ", 0, &showlist); > Then at the end of the file: > > /* Debug this files internals. */ > add_show_from_set (add_set_cmd ("mips", class_maintenance, var_zinteger, > &mips_debug, "Set mips debugging.\n\ > When non-zero, mips specific debugging is enabled.", &setdebuglist), > &showdebuglist); > > One of these must shadow the other.... The latter is ``set debug mips''. showdebuglist vs showmipscmdlist. Yes, bad variable names. Andrew