From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30507 invoked by alias); 3 Jan 2010 00:00:58 -0000 Received: (qmail 30489 invoked by uid 22791); 3 Jan 2010 00:00:57 -0000 X-SWARE-Spam-Status: No, hits=-0.3 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; Sun, 03 Jan 2010 00:00:50 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.pizzafactory.jp (Postfix) with ESMTP id E5AD558F3D45; Sun, 3 Jan 2010 09:00:52 +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 6T6tQmAqO3We; Sun, 3 Jan 2010 09:00:52 +0900 (JST) Received: from bmdk1194.bmobile.ne.jp (bmdk1194.bmobile.ne.jp [202.232.243.194]) by mail.pizzafactory.jp (Postfix) with ESMTP id 78BEC58F3D3E; Sun, 3 Jan 2010 09:00:46 +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: <4B3C9784.1040309@redhat.com> Date: Sun, 03 Jan 2010 00:00:00 -0000 Cc: Daniel Jacobowitz , gdb-patches@sourceware.org, binutils@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: <21F11493-3DE3-41FA-97D5-B539B54259A2@monami-software.com> References: <20081203140802.GA6965@caradoc.them.org> <50B2818F-7217-4D63-ABE8-19E444FE9A40@monami-software.com> <4B3C9784.1040309@redhat.com> To: Nick Clifton 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: 2010-01/txt/msg00033.txt.bz2 Hello Nick, Really did you try them? Here is a log of my GDB. (gdb) show architecture The target architecture is set automatically (currently m16c) (gdb) set architecture m32c:m32c Undefined item: "m32c:m32c". (gdb) set architecture m32c:m16c Undefined item: "m32c:m16c". I got their sources via official git repository. Thanks, On 2009/12/31, at 21:22, Nick Clifton wrote: > Hi Masaki, >=20 >> 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 = m32c". >> But bfd_m32c_arch is selected bfd_default_scan(). So he always gets >> configuration for m16c instead of m32c. >=20 > But as Daniel pointed out, if the user enters the command: >=20 > set architecture m32c:m32c >=20 > then the code in bfd_default_scan() will select the m32c architecture and= if the user enters: >=20 > set architecture m32c:m16c >=20 > then bfd_default_scan() will select the m16c architecture. >=20 >> I think printable names in bfd/cpu-m32.c should be changed to "m32c:m16c= ", "m32c:m32c". >=20 > There is no need for this, and in fact it will stop bfd_default_scan from= working as intended. >=20 > Cheers > Nick >=20