This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix fortran access to special register on SPU arch
- From: Markus Deuling <deuling at de dot ibm dot com>
- To: Michael Snyder <msnyder at specifix dot com>
- Cc: GDB Patches <gdb-patches at sourceware dot org>, Ulrich Weigand <uweigand at de dot ibm dot com>
- Date: Mon, 03 Mar 2008 21:21:31 +0100
- Subject: Re: [patch] Fix fortran access to special register on SPU arch
- References: <47CC4C37.3090502@de.ibm.com> <1204575007.19253.573.camel@localhost.localdomain>
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
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);
}
case BINOP_LOGICAL_AND: