]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* i386nbsd-nat.c (i386nbsd_supply_pcb): Cast to 'gdb_byte *' in
authorMark Kettenis <kettenis@gnu.org>
Mon, 4 Jul 2005 13:38:55 +0000 (13:38 +0000)
committerMark Kettenis <kettenis@gnu.org>
Mon, 4 Jul 2005 13:38:55 +0000 (13:38 +0000)
read_memory call.
* bsd-uthread.c (bsd_uthread_wait): Use gdb_byte for byte buffer.

gdb/ChangeLog
gdb/bsd-uthread.c
gdb/i386nbsd-nat.c

index 0c2ea6e2a024708908c77a4703439d9d059a7b73..aaa04204c595da226ea75f7c058a71c5ab9c0651 100644 (file)
@@ -1,5 +1,9 @@
 2005-07-04  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.
+
        * bsd-kvm.c (bsd_kvm_open): Properly cast sentinel in concat call.
        * coffread.c (patch_type, process_coff_symbol): Likewise.
        * corelow.c (core_open): Likewise. 
index 691d2b5197b55a1a6d8118c97b048ed09c1076d3..aa3425d73f917e6712e0e27085c76744dbd3c1ec 100644 (file)
@@ -343,7 +343,7 @@ bsd_uthread_wait (ptid_t ptid, struct target_waitstatus *status)
                                    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 22af0117e4e53370ce5b7691811c57f4aa34e20e..c93c500b452013d8d343070431e5f9f8e8f754c0 100644 (file)
@@ -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);