This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Can't set architecture to m32c on m32c-elf-gdb.
- From: Masaki Muranaka <monaka at monami-software dot com>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: gdb-patches at sourceware dot org, binutils at sourceware dot org
- Date: Mon, 28 Dec 2009 09:12:01 +0900
- Subject: Re: Can't set architecture to m32c on m32c-elf-gdb.
- References: <DD44C478-4E49-4C47-98AB-06DDD086DC40@monami-software.com> <20081203140802.GA6965@caradoc.them.org>
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 m32c".
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,
>>
>> 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.
>
> Maybe it's supposed to be "set architecture m32c:m16c" ?
>
> --
> Daniel Jacobowitz
> CodeSourcery
>
--
Masaki Muranaka
Monami software