From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27414 invoked by alias); 6 Jan 2010 23:24:17 -0000 Received: (qmail 27399 invoked by uid 22791); 6 Jan 2010 23:24:16 -0000 X-SWARE-Spam-Status: No, hits=-2.4 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; Wed, 06 Jan 2010 23:24:12 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.pizzafactory.jp (Postfix) with ESMTP id 9F89A5908587; Thu, 7 Jan 2010 08:24:18 +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 IgYY3JsbtPhR; Thu, 7 Jan 2010 08:24:18 +0900 (JST) Received: from [192.168.0.9] (unknown [192.168.0.9]) by mail.pizzafactory.jp (Postfix) with ESMTP id 44D295908580; Thu, 7 Jan 2010 08:24:18 +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: <4B44A991.4010101@redhat.com> Date: Wed, 06 Jan 2010 23:24:00 -0000 Cc: Daniel Jacobowitz , gdb-patches@sourceware.org, binutils@sourceware.org Content-Transfer-Encoding: 7bit Message-Id: <271DFD02-74A7-4296-8253-AF4E24A38ADA@monami-software.com> References: <20081203140802.GA6965@caradoc.them.org> <50B2818F-7217-4D63-ABE8-19E444FE9A40@monami-software.com> <4B3C9784.1040309@redhat.com> <21F11493-3DE3-41FA-97D5-B539B54259A2@monami-software.com> <4B44A991.4010101@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/msg00126.txt.bz2 Hello Nick, It might you feel you could set architecture to m32c, BFD (bfd_default_scan) returns arch_info for m16c always. This is the point. Please try 'print $dma0' on GDB (w/o my patch). (gdb) show architecture The target architecture is set automatically (currently m16c) (gdb) set architecture m32c The target architecture is assumed to be m32c (gdb) show architecture The target architecture is assumed to be m32c (gdb) print $dma0 $1 = void dma0 is a register supported by m32c only. So the result of 'print $dma0' is ... In case m32c, it should be 'No registers.' In case m16c, it should be ''void' since it doesn't have dma0 register. Thanks, On 2010/01/07, at 0:17, Nick Clifton wrote: > Hi Masaki, > >> 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". > > Point. But when I try this: > > (gdb) show architecture > The target architecture is set automatically (currently m16c) > (gdb) set architecture m32c > The target architecture is assumed to be m32c > (gdb) show architecture > The target architecture is assumed to be m32c > (gdb) set architecture m16c > The target architecture is assumed to be m16c > (gdb) show architecture > The target architecture is assumed to be m16c > > So it appears that you can set the architecture to m32c, yes ? > > Cheers > Nick > -- Masaki Muranaka Monami software