]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Eliminate pointer signedness warning.
authorMark Kettenis <kettenis@gnu.org>
Sat, 1 Mar 2014 12:06:49 +0000 (13:06 +0100)
committerMark Kettenis <kettenis@gnu.org>
Sat, 1 Mar 2014 12:10:32 +0000 (13:10 +0100)
gdb/ChangeLog:

        * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.

gdb/ChangeLog
gdb/i386obsd-nat.c

index 441673a56bb45262789e6884b8e27a0e113e55c1..466663775a913b78f405595ccfbba6a7bed9b253 100644 (file)
@@ -1,3 +1,7 @@
+2014-03-01  Mark Kettenis  <kettenis@gnu.org>
+
+       * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
+
 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
 
        * mips64obsd-nat.c: Include "obsd-nath".
index f4d07fe202c229d7a5857b9c4a2d108afa4b95ee..a0b0808673b5d34d1cfc37761440c72dea448ef8 100644 (file)
@@ -64,7 +64,7 @@ i386obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
   if ((pcb->pcb_flags & PCB_SAVECTX) == 0)
     {
       /* Yes, we have a frame that matches cpu_switch().  */
-      read_memory (pcb->pcb_esp, (char *) &sf, sizeof sf);
+      read_memory (pcb->pcb_esp, (gdb_byte *) &sf, sizeof sf);
       pcb->pcb_esp += sizeof (struct switchframe);
       regcache_raw_supply (regcache, I386_EDI_REGNUM, &sf.sf_edi);
       regcache_raw_supply (regcache, I386_ESI_REGNUM, &sf.sf_esi);