Can't set architecture to m32c on m32c-elf-gdb.
Nick Clifton
nickc@redhat.com
Thu Jan 7 15:54:00 GMT 2010
Hi Masaki,
> Please try 'print $dma0' on GDB (w/o my patch).
> 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.
Thank you - that was the extra information that I needed in order to be
able to diagnose this problem.
Please try out the attached patch and let me know if it works for you.
By the way, this has exposed a problem with GDB's set architecture
command - it is not set up to allow the "ARCH:MACH" notation that is
accepted by the BFD library. Maybe someone will want to fix this one day...
Cheers
Nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpu-m32c.c.patch
Type: text/x-diff
Size: 1940 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20100107/f27f5ba4/attachment.bin>
More information about the Binutils
mailing list