diff options
author | Kamil Rytarowski <n54@gmx.com> | 2020-03-14 13:33:14 +0100 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2020-03-14 13:33:14 +0100 |
commit | 12753073036aad1250b5e9a1bd6991c125150269 (patch) | |
tree | 546bb5e048da479c8b942f1ad4f217c46dbd46c9 /gdb | |
parent | d5be5fa4207da00d039a1d5a040ba316e7092cbd (diff) | |
download | gdb-12753073036aad1250b5e9a1bd6991c125150269.zip gdb-12753073036aad1250b5e9a1bd6991c125150269.tar.gz gdb-12753073036aad1250b5e9a1bd6991c125150269.tar.bz2 |
Add explicit cast to fix build of vax-bsd-nat.c
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 *.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/vax-bsd-nat.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f22a699..c148626 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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 instead of inf_ptrace_target. * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using diff --git a/gdb/vax-bsd-nat.c b/gdb/vax-bsd-nat.c index 08b2e61..9b1351d 100644 --- a/gdb/vax-bsd-nat.c +++ b/gdb/vax-bsd-nat.c @@ -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++) |