Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gdb/dist/gdb add some missing casts and make t...
details: https://anonhg.NetBSD.org/src/rev/1e15affc24af
branches: trunk
changeset: 818537:1e15affc24af
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Oct 17 17:37:44 2016 +0000
description:
add some missing casts and make these build.
diffstat:
external/gpl3/gdb/dist/gdb/m68kbsd-nat.c | 10 +++++-----
external/gpl3/gdb/dist/gdb/vaxbsd-nat.c | 4 ++--
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (69 lines):
diff -r 2acbb14af9b6 -r 1e15affc24af external/gpl3/gdb/dist/gdb/m68kbsd-nat.c
--- a/external/gpl3/gdb/dist/gdb/m68kbsd-nat.c Mon Oct 17 16:02:10 2016 +0000
+++ b/external/gpl3/gdb/dist/gdb/m68kbsd-nat.c Mon Oct 17 17:37:44 2016 +0000
@@ -57,7 +57,7 @@
static void
m68kbsd_supply_gregset (struct regcache *regcache, const void *gregs)
{
- const char *regs = gregs;
+ const char *regs = (const char *)gregs;
int regnum;
for (regnum = M68K_D0_REGNUM; regnum <= M68K_PC_REGNUM; regnum++)
@@ -70,7 +70,7 @@
m68kbsd_supply_fpregset (struct regcache *regcache, const void *fpregs)
{
struct gdbarch *gdbarch = get_regcache_arch (regcache);
- const char *regs = fpregs;
+ const char *regs = (const char *)fpregs;
int regnum;
for (regnum = M68K_FP0_REGNUM; regnum <= M68K_FPI_REGNUM; regnum++)
@@ -85,7 +85,7 @@
m68kbsd_collect_gregset (const struct regcache *regcache,
void *gregs, int regnum)
{
- char *regs = gregs;
+ char *regs = (char *)gregs;
int i;
for (i = M68K_D0_REGNUM; i <= M68K_PC_REGNUM; i++)
@@ -103,7 +103,7 @@
void *fpregs, int regnum)
{
struct gdbarch *gdbarch = get_regcache_arch (regcache);
- char *regs = fpregs;
+ char *regs = (char *)fpregs;
int i;
for (i = M68K_FP0_REGNUM; i <= M68K_FPI_REGNUM; i++)
@@ -253,7 +253,7 @@
tmp = pcb->pcb_ps & 0xffff;
regcache_raw_supply (regcache, M68K_PS_REGNUM, &tmp);
- read_memory (pcb->pcb_regs[PCB_REGS_FP] + 4, (char *) &tmp, sizeof tmp);
+ read_memory (pcb->pcb_regs[PCB_REGS_FP] + 4, (unsigned char *) &tmp, sizeof tmp);
regcache_raw_supply (regcache, M68K_PC_REGNUM, &tmp);
return 1;
diff -r 2acbb14af9b6 -r 1e15affc24af external/gpl3/gdb/dist/gdb/vaxbsd-nat.c
--- a/external/gpl3/gdb/dist/gdb/vaxbsd-nat.c Mon Oct 17 16:02:10 2016 +0000
+++ b/external/gpl3/gdb/dist/gdb/vaxbsd-nat.c Mon Oct 17 17:37:44 2016 +0000
@@ -47,7 +47,7 @@
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++)
@@ -61,7 +61,7 @@
vaxbsd_collect_gregset (const struct regcache *regcache,
void *gregs, int regnum)
{
- gdb_byte *regs = gregs;
+ gdb_byte *regs = (gdb_byte *)gregs;
int i;
for (i = 0; i <= VAX_NUM_REGS; i++)
Home |
Main Index |
Thread Index |
Old Index