From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26539 invoked by alias); 16 May 2002 13:49:58 -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 26493 invoked from network); 16 May 2002 13:49:53 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 16 May 2002 13:49:53 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 7BFDC3E73; Thu, 16 May 2002 09:50:02 -0400 (EDT) Message-ID: <3CE3B90A.1000904@cygnus.com> Date: Thu, 16 May 2002 06:49: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, Eli Zaretskii Cc: 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/msg00188.txt.bz2 > /* 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); > Just a PS on this. The command set ``set mips fpu ...'' et.al. isn't perfect - it sets a global for all mips which is probably sufficient for what people want. Eventually a per thread command may be needed. So that a target containing an 8086 and x86-64 can have, separatly, their disassembly mode. Something like: thread 5 set i386 disassembler x86-64 (just ignore the syntax though). However, not our problem :-) Andrew