This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Eliminate pointer signedness warning.
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: gdb-patches at sourceware dot org
- Date: Sat, 1 Mar 2014 13:15:57 +0100 (CET)
- Subject: [PATCH] Eliminate pointer signedness warning.
- Authentication-results: sourceware.org; auth=none
Committed.
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 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);
--
1.8.5.3