This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] gdb_bytize i386nbsd-nat.c and bsd-uthread.c
- From: Mark Kettenis <kettenis at gnu dot org>
- To: gdb-patches at sourceware dot org
- Date: Mon, 4 Jul 2005 15:40:43 +0200
- Subject: [commit] gdb_bytize i386nbsd-nat.c and bsd-uthread.c
More gdb_byte fallout uncovered by GCC 4.0.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* i386nbsd-nat.c (i386nbsd_supply_pcb): Cast to 'gdb_byte *' in
read_memory call.
* bsd-uthread.c (bsd_uthread_wait): Use gdb_byte for byte buffer.
Index: bsd-uthread.c
===================================================================
RCS file: /cvs/src/src/gdb/bsd-uthread.c,v
retrieving revision 1.4
diff -u -p -r1.4 bsd-uthread.c
--- bsd-uthread.c 16 May 2005 16:59:44 -0000 1.4
+++ bsd-uthread.c 4 Jul 2005 13:37:58 -0000
@@ -343,7 +343,7 @@ bsd_uthread_wait (ptid_t ptid, struct ta
builtin_type_void_data_ptr);
if (addr != 0)
{
- char buf[4];
+ gdb_byte buf[4];
/* FIXME: For executables linked statically with the threads
library, we end up here before the program has actually been
Index: i386nbsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386nbsd-nat.c,v
retrieving revision 1.14
diff -u -p -r1.14 i386nbsd-nat.c
--- i386nbsd-nat.c 19 Sep 2004 20:49:26 -0000 1.14
+++ i386nbsd-nat.c 4 Jul 2005 13:37:59 -0000
@@ -1,6 +1,6 @@
/* Native-dependent code for NetBSD/i386.
- Copyright 2004 Free Software Foundation, Inc.
+ Copyright 2004, 2005 Free Software Foundation, Inc.
This file is part of GDB.
@@ -60,7 +60,7 @@ i386nbsd_supply_pcb (struct regcache *re
if (pcb->pcb_esp == 0)
return 0;
- 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);