This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]