From 8dccaca313c13c8d24fe3a8b636bfd6a42b4b323 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 14 May 2005 11:50:36 +0000 Subject: [PATCH] * m88k-tdep.c (m88k_breakpoint_from_pc): Change return type to `const gdb_byte *'. Use gdb_byte for break_insn. (m88k_return_value): Change type of readbuf and writebuf arguments to `gdb_byte *'. Use gdb_byte for buf. (m88k_supply_gregset): Use `gdb_byte *' for regs. --- gdb/ChangeLog | 6 ++++++ gdb/m88k-tdep.c | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 511a4f7..121fffb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2005-05-14 Mark Kettenis + * m88k-tdep.c (m88k_breakpoint_from_pc): Change return type to + `const gdb_byte *'. Use gdb_byte for break_insn. + (m88k_return_value): Change type of readbuf and + writebuf arguments to `gdb_byte *'. Use gdb_byte for buf. + (m88k_supply_gregset): Use `gdb_byte *' for regs. + * vax-tdep.c (vax_return_value): Change type of readbuf and writebuf arguments to `gdb_byte *'. diff --git a/gdb/m88k-tdep.c b/gdb/m88k-tdep.c index db443e9..36d155b 100644 --- a/gdb/m88k-tdep.c +++ b/gdb/m88k-tdep.c @@ -102,11 +102,11 @@ m88k_addr_bits_remove (CORE_ADDR addr) *LEN and optionally adjust *PC to point to the correct memory location for inserting the breakpoint. */ -static const unsigned char * +static const gdb_byte * m88k_breakpoint_from_pc (CORE_ADDR *pc, int *len) { /* tb 0,r0,511 */ - static unsigned char break_insn[] = { 0xf0, 0x00, 0xd1, 0xff }; + static gdb_byte break_insn[] = { 0xf0, 0x00, 0xd1, 0xff }; *len = sizeof (break_insn); return break_insn; @@ -384,11 +384,11 @@ m88k_unwind_dummy_id (struct gdbarch *arch, struct frame_info *next_frame) static enum return_value_convention m88k_return_value (struct gdbarch *gdbarch, struct type *type, - struct regcache *regcache, void *readbuf, - const void *writebuf) + struct regcache *regcache, gdb_byte *readbuf, + const gdb_byte *writebuf) { int len = TYPE_LENGTH (type); - char buf[8]; + gdb_byte buf[8]; if (!m88k_integral_or_pointer_p (type) && !m88k_floating_p (type)) return RETURN_VALUE_STRUCT_CONVENTION; @@ -798,7 +798,7 @@ m88k_supply_gregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len) { - const char *regs = gregs; + const gdb_byte *regs = gregs; int i; for (i = 0; i < M88K_NUM_REGS; i++) -- 2.7.4