[commit] Fix set $ev0.vec_f[0] = 1

Andrew Cagney ac131313@redhat.com
Sat Mar 8 19:26:00 GMT 2003


Hello,

The attached fixes the code that handles `set variable $ev0.vec_f[0] = 
1'.  i.e., assignment to a vector element of a vector register.

The problem was two fold:

- the code handling the subscripting of register and builtin variables 
never thought to set VALUE_REGNO(), leaving it with a value of -1.

- the code handling register assignments was recently revamped (fixing 
bugs), but in the process started assuming that VALUE_REGNO() field of a 
destination value was valid.

This patch fixes the subscript code so that the register number is valid.

committed,
Andrew

PS: Elena's e500 tests, that I just posted, tickle this bug.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20030308/41088e9b/attachment.ksh>


More information about the Gdb-patches mailing list