Re: [patch] Fix fortran access to special register on SPU arch

Markus Deuling
2008-03-03T20:22:15Z

[-- Attachment #1: Type: text/plain, Size: 333 bytes --]

Hi Michael,

Michael Snyder schrieb:
> I understand the failure mode (not located in memory), but
> if value_subscript works in the register case, why wouldn't
> it work in general, rather than value_ind?
>

it does. Attached patch works fine. Ok ?

--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com

[-- Attachment #2: diff-fortran --]
[-- Type: text/plain, Size: 446 bytes --]

diff -urpN src/gdb/eval.c dev/gdb/eval.c
--- src/gdb/eval.c 2008-02-11 05:48:36.000000000 +0100
+++ dev/gdb/eval.c 2008-03-03 21:19:32.000000000 +0100
@@ -1720,7 +1720,7 @@ evaluate_subexp_standard (struct type *e
returns the correct type value */

deprecated_set_value_type (arg1, tmp_type);
- return value_ind (value_add (value_coerce_array (arg1), arg2));
+ return value_subscript (arg1, arg2);
}