Add explicit cast to fix build of vax-bsd-nat.c
authorKamil Rytarowski <n54@gmx.com>
Sat, 14 Mar 2020 12:33:14 +0000 (13:33 +0100)
committerKamil Rytarowski <n54@gmx.com>
Sat, 14 Mar 2020 12:33:14 +0000 (13:33 +0100)
gdb/ChangeLog:

* vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const gdb_byte *.
* vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.

gdb/ChangeLog
gdb/vax-bsd-nat.c

index f22a699e87b1cf419f173a591d07a3b2aafb2a50..c148626b332fc7a18bcd12fc94334a78225489ec 100644 (file)
@@ -1,3 +1,8 @@
+2020-03-14  Kamil Rytarowski  <n54@gmx.com>
+
+       * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const gdb_byte *.
+       * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
+
 2020-03-14  Kamil Rytarowski  <n54@gmx.com>
 
        * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
index 08b2e61fc08d9ad4ddf45c11483ccf08dd2549cd..9b1351d9b1497abb8c2ab35e1659d0787ce118f7 100644 (file)
@@ -45,7 +45,7 @@ static vax_bsd_nat_target the_vax_bsd_nat_target;
 static void
 vaxbsd_supply_gregset (struct regcache *regcache, const void *gregs)
 {
-  const gdb_byte *regs = gregs;
+  const gdb_byte *regs = (const gdb_byte *)gregs;
   int regnum;
 
   for (regnum = 0; regnum < VAX_NUM_REGS; regnum++)
@@ -59,7 +59,7 @@ static void
 vaxbsd_collect_gregset (const struct regcache *regcache,
                        void *gregs, int regnum)
 {
-  gdb_byte *regs = gregs;
+  gdb_byte *regs = (void *)gregs;
   int i;
 
   for (i = 0; i <= VAX_NUM_REGS; i++)
This page took 0.027957 seconds and 4 git commands to generate.