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]

[commit] Fix (char *) cast in amd64obsd-nat.c


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

	* amd64obsd-nat.c (amd64obsd_supply_pcb): Use 'gdb_byte *' instead
	of 'char *' in cast.

Index: amd64obsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64obsd-nat.c,v
retrieving revision 1.5
diff -u -p -r1.5 amd64obsd-nat.c
--- amd64obsd-nat.c 17 Dec 2005 22:33:59 -0000 1.5
+++ amd64obsd-nat.c 8 Jan 2006 23:17:10 -0000
@@ -103,7 +103,7 @@ amd64obsd_supply_pcb (struct regcache *r
     return 0;
 
   /* Read the stack frame, and check its validity.  */
-  read_memory (pcb->pcb_rsp, (char *) &sf, sizeof sf);
+  read_memory (pcb->pcb_rsp, (gdb_byte *) &sf, sizeof sf);
   if (sf.sf_rbp == pcb->pcb_rbp)
     {
       /* Yes, we have a frame that matches cpu_switch().  */


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