mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 19:09:31 +08:00
Eliminate pointer signedness warning.
gdb/ChangeLog: * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
This commit is contained in:
@ -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>
|
2014-03-01 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
* mips64obsd-nat.c: Include "obsd-nath".
|
* mips64obsd-nat.c: Include "obsd-nath".
|
||||||
|
@ -64,7 +64,7 @@ i386obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
|
|||||||
if ((pcb->pcb_flags & PCB_SAVECTX) == 0)
|
if ((pcb->pcb_flags & PCB_SAVECTX) == 0)
|
||||||
{
|
{
|
||||||
/* Yes, we have a frame that matches cpu_switch(). */
|
/* 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);
|
pcb->pcb_esp += sizeof (struct switchframe);
|
||||||
regcache_raw_supply (regcache, I386_EDI_REGNUM, &sf.sf_edi);
|
regcache_raw_supply (regcache, I386_EDI_REGNUM, &sf.sf_edi);
|
||||||
regcache_raw_supply (regcache, I386_ESI_REGNUM, &sf.sf_esi);
|
regcache_raw_supply (regcache, I386_ESI_REGNUM, &sf.sf_esi);
|
||||||
|
Reference in New Issue
Block a user