From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30425 invoked by alias); 4 Dec 2008 14:22:49 -0000 Received: (qmail 30403 invoked by uid 22791); 4 Dec 2008 14:22:47 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 04 Dec 2008 14:21:53 +0000 Received: (qmail 7557 invoked from network); 4 Dec 2008 14:21:51 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 4 Dec 2008 14:21:51 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: Can't set architecture to m32c on m32c-elf-gdb. Date: Thu, 04 Dec 2008 14:22:00 -0000 User-Agent: KMail/1.9.10 Cc: Daniel Jacobowitz , Masaki Muranaka , binutils@sourceware.org References: <20081204131224.GB24868@caradoc.them.org> In-Reply-To: <20081204131224.GB24868@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <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/msg00065.txt.bz2 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