This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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.


On Thu, Dec 04, 2008 at 10:03:56AM +0900, Masaki Muranaka wrote:
> Before applied my patch.
> 
> | (gdb) set architecture m32c
> | The target architecture is assumed to be m16c
> 
> The architecture settings is not changed.
> And there seems to be no change around register settings. 
> 
> | (gdb) print $dma0
> | $1 = void
> 
> It's an unsuitable behaviour, right?
> 
> 
> 
> After applied my patch.
> 
> | (gdb) set architecture m32c
> | The target architecture is assumed to be m32c
> 
> And we can use some extra registers for m32c.

ARM has architecture name "arm" and printable name "armv2", and that
works fine:

(gdb)  set architecture arm
The target architecture is assumed to be arm
(gdb)  set architecture armv2
The target architecture is assumed to be armv2
(gdb)  set architecture arm
The target architecture is assumed to be arm

See bfd_default_scan for more.  I guess it's because the architecture
is named "m32c", but the default flag is set for m16c.  If that's so,
"set architecture m32c:m32c" should work - does it?

In that case your patch makes sense though I don't know what might break.

-- 
Daniel Jacobowitz
CodeSourcery


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