From b72a79813d69202b6297d872344a8a3702fae85d Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 1 Mar 2014 13:06:49 +0100 Subject: [PATCH] Eliminate pointer signedness warning. gdb/ChangeLog: * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'. --- gdb/ChangeLog | 4 ++++ gdb/i386obsd-nat.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 441673a56bb..466663775a9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-03-01 Mark Kettenis + + * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'. + 2014-03-01 Mark Kettenis * mips64obsd-nat.c: Include "obsd-nath". diff --git a/gdb/i386obsd-nat.c b/gdb/i386obsd-nat.c index f4d07fe202c..a0b0808673b 100644 --- a/gdb/i386obsd-nat.c +++ b/gdb/i386obsd-nat.c @@ -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); -- 2.39.5