Module Name: src Committed By: mrg Date: Mon Oct 17 17:37:44 UTC 2016
Modified Files: src/external/gpl3/gdb/dist/gdb: m68kbsd-nat.c vaxbsd-nat.c Log Message: add some missing casts and make these build. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gdb/dist/gdb/m68kbsd-nat.c cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gdb/dist/gdb/vaxbsd-nat.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/gpl3/gdb/dist/gdb/m68kbsd-nat.c diff -u src/external/gpl3/gdb/dist/gdb/m68kbsd-nat.c:1.10 src/external/gpl3/gdb/dist/gdb/m68kbsd-nat.c:1.11 --- src/external/gpl3/gdb/dist/gdb/m68kbsd-nat.c:1.10 Wed Oct 12 20:20:33 2016 +++ src/external/gpl3/gdb/dist/gdb/m68kbsd-nat.c Mon Oct 17 17:37:44 2016 @@ -57,7 +57,7 @@ m68kbsd_fpregset_supplies_p (int regnum) 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 @@ static void 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 @@ static void 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 @@ m68kbsd_collect_fpregset (const struct r 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 @@ m68kbsd_supply_pcb (struct regcache *reg 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; Index: src/external/gpl3/gdb/dist/gdb/vaxbsd-nat.c diff -u src/external/gpl3/gdb/dist/gdb/vaxbsd-nat.c:1.11 src/external/gpl3/gdb/dist/gdb/vaxbsd-nat.c:1.12 --- src/external/gpl3/gdb/dist/gdb/vaxbsd-nat.c:1.11 Wed Oct 12 20:20:33 2016 +++ src/external/gpl3/gdb/dist/gdb/vaxbsd-nat.c Mon Oct 17 17:37:44 2016 @@ -47,7 +47,7 @@ typedef struct fpreg fpregset_t; 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 @@ static void 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++)