From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32211 invoked by alias); 5 Dec 2008 00:29:17 -0000 Received: (qmail 32080 invoked by uid 22791); 5 Dec 2008 00:29:16 -0000 X-Spam-Check-By: sourceware.org Received: from mail1.asahi-net.or.jp (HELO mail.asahi-net.or.jp) (202.224.39.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 05 Dec 2008 00:28:22 +0000 Received: from [192.168.0.75] (p12018-ipbffx02marunouchi.tokyo.ocn.ne.jp [222.147.75.18]) by mail.asahi-net.or.jp (Postfix) with ESMTP id 42B455EA66; Fri, 5 Dec 2008 09:28:18 +0900 (JST) Cc: gdb-patches@sourceware.org, Daniel Jacobowitz , binutils@sourceware.org Message-Id: <9646DD31-9D56-4139-B593-B5D30496F095@monami-software.com> From: Masaki Muranaka To: Pedro Alves In-Reply-To: <200812041422.32953.pedro@codesourcery.com> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: Can't set architecture to m32c on m32c-elf-gdb. Date: Fri, 05 Dec 2008 00:29:00 -0000 References: <20081204131224.GB24868@caradoc.them.org> <200812041422.32953.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-12/txt/msg00083.txt.bz2 Hello, The result of is : | This GDB was configured as "--host=i386-apple-darwin9.5.0 --target=m32c-elf". | For bug reporting instructions, please see: | . | (gdb) set architecture | auto m16c m32c On 2008/12/04, at 23:22, Pedro Alves wrote: > On Thursday 04 December 2008 13:12:24, Daniel Jacobowitz wrote: >> On Thu, Dec 04, 2008 at 03:47:05PM +0900, Masaki Muranaka wrote: >>>> See bfd_default_scan for more. I guess it's because the architecture >>>> is named "m32c", but the default flag is set for m16c. If that's so, >>>> "set architecture m32c:m32c" should work - does it? >>> >>> | For bug reporting instructions, please see: >>> | . >>> | (gdb) set architecture m32c:m32c >>> | Undefined item: "m32c:m32c". >>> | (gdb) set architecture m32c:m16c >>> | Undefined item: "m32c:m16c". >>> >>> Should I put any commands before 'set architecture'? >> >> Strange. I guess I don't understand how this works, then. I thought >> this would do it: >> >> /* Given that printable_name contains no colon, attempt to match: >> ARCH_NAME [ ":" ] PRINTABLE_NAME? */ >> > > The "Undefined item:" error comes from the fact that "set architecture" is > an "enum" command, and gdb is complaining that those entries aren't listed > as possible enumerations. > > All settings gdb will accept are shown with 'set architecture '. > What options does that show? > > -- > Pedro Alves > Masaki Muranaka Monami Software