[PATCH][SH] Fix a few architecture variant settings

Andrew Stubbs ams@codesourcery.com
Sat Oct 10 10:23:00 GMT 2009


Hi,

I recently noticed that GDB claims that the 'fake' SH architecture 
"sh2a-or-sh4" does not have FP registers:

(gdb) show architecture
The target architecture is set automatically (currently sh2a-or-sh4)
(gdb) info float
No floating-point info available for this processor.

This is not true - sh2a-or-sh4 is the intersection between the SH-2A and 
SH-4 architectures, both of which have double-precision FP. This 
assembler/linker automatically select this architecture when FP 
instructions are used, but they cannot tell which architecture was 
intended (the two architectures are incompatible in some ways, but there 
are a set of programs that will run on both).

When examining the source I also noticed that a number of architectures 
have no specific 'regs' command variant configured (causing them to 
default to the most basic variant).

This patch solves both problem problems.

OK?

Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sh2a-or-sh4-gdb.patch
Type: text/x-diff
Size: 1979 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20091010/902a445e/attachment.bin>


More information about the Gdb-patches mailing list