This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Can't set architecture to m32c on m32c-elf-gdb.


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]