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]

[rfc] [4/8] Get rid of current_gdbarch in arch-utils.c


Hi,

this patch gets rid of some of the current_gdbarch's in arch-utils.c

Is this ok to commit?

ChangeLog:


* arch-utils.c (legacy_return_value): Replace current_gdbarch by gdbarch.


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



diff -urpN src/gdb/arch-utils.c dev/gdb/arch-utils.c
--- src/gdb/arch-utils.c	2007-09-10 23:14:10.000000000 +0200
+++ dev/gdb/arch-utils.c	2007-10-09 10:25:44.000000000 +0200
@@ -53,7 +53,7 @@ legacy_return_value (struct gdbarch *gdb
 			|| TYPE_CODE (valtype) == TYPE_CODE_UNION
 			|| TYPE_CODE (valtype) == TYPE_CODE_ARRAY)
 		       && gdbarch_deprecated_use_struct_convention
-			    (current_gdbarch, 0, valtype));
+			    (gdbarch, 0, valtype));
 
   if (writebuf != NULL)
     {
@@ -63,14 +63,13 @@ legacy_return_value (struct gdbarch *gdb
 	 structures.  Should not be called with such types.  */
       gdb_assert (TYPE_CODE (valtype) != TYPE_CODE_STRUCT
 		  && TYPE_CODE (valtype) != TYPE_CODE_UNION);
-      gdbarch_store_return_value (current_gdbarch, valtype, regcache, writebuf);
+      gdbarch_store_return_value (gdbarch, valtype, regcache, writebuf);
     }
 
   if (readbuf != NULL)
     {
       gdb_assert (!struct_return);
-      gdbarch_extract_return_value (current_gdbarch,
-				    valtype, regcache, readbuf);
+      gdbarch_extract_return_value (gdbarch, valtype, regcache, readbuf);
     }
 
   if (struct_return)



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