This is the mail archive of the gdb-patches@sources.redhat.com 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]

[PATCH] Don't use bfd_byte in i386-tdep.c


It's use is inconsisted with the rest of the code.

Committed.

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.

Index: i386-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-tdep.c,v
retrieving revision 1.174
diff -u -p -r1.174 i386-tdep.c
--- i386-tdep.c 30 Oct 2003 23:03:36 -0000 1.174
+++ i386-tdep.c 16 Nov 2003 10:38:53 -0000
@@ -1157,10 +1157,9 @@ i386_push_dummy_call (struct gdbarch *gd
 
 static void
 i386_extract_return_value (struct type *type, struct regcache *regcache,
-			   void *dst)
+			   void *valbuf)
 {
   struct gdbarch_tdep *tdep = gdbarch_tdep (get_regcache_arch (regcache));
-  bfd_byte *valbuf = dst;
   int len = TYPE_LENGTH (type);
   char buf[I386_MAX_REGISTER_SIZE];
 
@@ -1202,7 +1201,7 @@ i386_extract_return_value (struct type *
 	  regcache_raw_read (regcache, LOW_RETURN_REGNUM, buf);
 	  memcpy (valbuf, buf, low_size);
 	  regcache_raw_read (regcache, HIGH_RETURN_REGNUM, buf);
-	  memcpy (valbuf + low_size, buf, len - low_size);
+	  memcpy ((char *) valbuf + low_size, buf, len - low_size);
 	}
       else
 	internal_error (__FILE__, __LINE__,


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