Can't set architecture to m32c on m32c-elf-gdb.
Sun Jan 3 00:00:00 GMT 2010
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.
On 2009/12/31, at 21:22, Nick Clifton wrote:
> Hi Masaki,
>> 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 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.
> But as Daniel pointed out, if the user enters the command:
> set architecture m32c:m32c
> then the code in bfd_default_scan() will select the m32c architecture and if the user enters:
> set architecture m32c:m16c
> then bfd_default_scan() will select the m16c architecture.
>> I think printable names in bfd/cpu-m32.c should be changed to "m32c:m16c", "m32c:m32c".
> There is no need for this, and in fact it will stop bfd_default_scan from working as intended.
More information about the Binutils