From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30619 invoked by alias); 28 Dec 2009 02:32:03 -0000 Received: (qmail 30600 invoked by uid 22791); 28 Dec 2009 02:32:02 -0000 X-SWARE-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from p12018-ipbffx02marunouchi.tokyo.ocn.ne.jp (HELO mail.pizzafactory.jp) (222.147.75.18) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Dec 2009 02:31:56 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.pizzafactory.jp (Postfix) with ESMTP id 19E1158D445B; Mon, 28 Dec 2009 11:32:00 +0900 (JST) Received: from mail.pizzafactory.jp ([127.0.0.1]) by localhost (ldap.monami-software.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GUq9G5A7K-uE; Mon, 28 Dec 2009 11:31:59 +0900 (JST) Received: from bmdk8209.bmobile.ne.jp (bmdk8209.bmobile.ne.jp [220.156.133.209]) by mail.pizzafactory.jp (Postfix) with ESMTP id 10EFB58D444F; Mon, 28 Dec 2009 11:31:56 +0900 (JST) Subject: Re: Can't set architecture to m32c on m32c-elf-gdb. Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Masaki Muranaka In-Reply-To: <20081203140802.GA6965@caradoc.them.org> Date: Mon, 28 Dec 2009 02:32:00 -0000 Cc: gdb-patches@sourceware.org, binutils@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: <50B2818F-7217-4D63-ABE8-19E444FE9A40@monami-software.com> References: <20081203140802.GA6965@caradoc.them.org> To: Daniel Jacobowitz 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: 2009-12/txt/msg00405.txt.bz2 Hello, I figured out the reason about this issue. This is caused by a bug in bfd/cpu-m32c.c. The condision is like this: He expects to select arch_info_struct[0] when he puts "set architecture m32= c". But bfd_m32c_arch is selected bfd_default_scan(). So he always gets configuration for m16c instead of m32c. I think printable names in bfd/cpu-m32.c should be changed to "m32c:m16c", = "m32c:m32c". On 2008/12/03, at 23:08, Daniel Jacobowitz wrote: > On Wed, Dec 03, 2008 at 06:16:29PM +0900, Masaki Muranaka wrote: >> Hello, >>=20 >> I couldn't set architecture m16c to m32c on the HEAD revision of gdb, >> I think it is caused by definition in bfd/cpu-m32c.c but I'm not certain. >> Any comments appreciated. >=20 > Maybe it's supposed to be "set architecture m32c:m16c" ? >=20 > --=20 > Daniel Jacobowitz > CodeSourcery >=20 -- Masaki Muranaka Monami software