aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386nbsd-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-07-04 13:38:55 +0000
committerMark Kettenis <kettenis@gnu.org>2005-07-04 13:38:55 +0000
commitdf80278b799985481340cc3fefba4ba5737a7cf2 (patch)
treed480f0652a7cb1835b96832dbd347113ffa95e6d /gdb/i386nbsd-nat.c
parent1754f103e6323b908fc004d992930933a04183ce (diff)
downloadgdb-df80278b799985481340cc3fefba4ba5737a7cf2.zip
gdb-df80278b799985481340cc3fefba4ba5737a7cf2.tar.gz
gdb-df80278b799985481340cc3fefba4ba5737a7cf2.tar.bz2
* 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.
Diffstat (limited to 'gdb/i386nbsd-nat.c')
-rw-r--r--gdb/i386nbsd-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/i386nbsd-nat.c b/gdb/i386nbsd-nat.c
index 22af011..c93c500 100644
--- a/gdb/i386nbsd-nat.c
+++ b/gdb/i386nbsd-nat.c
@@ -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 *regcache, struct pcb *pcb)
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);