diff options
author | Mark Kettenis <kettenis@gnu.org> | 2014-03-01 13:06:49 +0100 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2014-03-01 13:10:32 +0100 |
commit | b72a79813d69202b6297d872344a8a3702fae85d (patch) | |
tree | 6ebfd9f2542cfe7660ff842c192c661f1a7b24a7 | |
parent | 512c56d6628733075b59bdfbe42c94ab72741ba4 (diff) | |
download | gdb-b72a79813d69202b6297d872344a8a3702fae85d.zip gdb-b72a79813d69202b6297d872344a8a3702fae85d.tar.gz gdb-b72a79813d69202b6297d872344a8a3702fae85d.tar.bz2 |
Eliminate pointer signedness warning.
gdb/ChangeLog:
* i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/i386obsd-nat.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 441673a..4666637 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 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". (_initialize_mips64obsd_nat): Call obsd_add_target instead of add_target diff --git a/gdb/i386obsd-nat.c b/gdb/i386obsd-nat.c index f4d07fe..a0b0808 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); |