| Index: gdb/mn10300-tdep.c
|
| diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c
|
| index e2926133eda3de94312529c125c03fbdaff168f4..ffc91238ad38d0a9475e3f886426c0a9899e7618 100644
|
| --- a/gdb/mn10300-tdep.c
|
| +++ b/gdb/mn10300-tdep.c
|
| @@ -1,6 +1,6 @@
|
| /* Target-dependent code for the Matsushita MN10300 for GDB, the GNU debugger.
|
|
|
| - Copyright (C) 1996-2005, 2007-2012 Free Software Foundation, Inc.
|
| + Copyright (C) 1996-2013 Free Software Foundation, Inc.
|
|
|
| This file is part of GDB.
|
|
|
| @@ -22,7 +22,7 @@
|
| #include "dis-asm.h"
|
| #include "gdbtypes.h"
|
| #include "regcache.h"
|
| -#include "gdb_string.h"
|
| +#include <string.h>
|
| #include "gdb_assert.h"
|
| #include "gdbcore.h" /* For write_memory_unsigned_integer. */
|
| #include "value.h"
|
| @@ -168,7 +168,7 @@ mn10300_use_struct_convention (struct type *type)
|
|
|
| static void
|
| mn10300_store_return_value (struct gdbarch *gdbarch, struct type *type,
|
| - struct regcache *regcache, const void *valbuf)
|
| + struct regcache *regcache, const gdb_byte *valbuf)
|
| {
|
| int len = TYPE_LENGTH (type);
|
| int reg, regsz;
|
| @@ -187,7 +187,7 @@ mn10300_store_return_value (struct gdbarch *gdbarch, struct type *type,
|
| regcache_raw_write (regcache, reg, valbuf);
|
| gdb_assert (regsz == register_size (gdbarch, reg + 1));
|
| regcache_raw_write_part (regcache, reg+1, 0,
|
| - len - regsz, (char *) valbuf + regsz);
|
| + len - regsz, valbuf + regsz);
|
| }
|
| else
|
| internal_error (__FILE__, __LINE__,
|
| @@ -198,7 +198,7 @@ static void
|
| mn10300_extract_return_value (struct gdbarch *gdbarch, struct type *type,
|
| struct regcache *regcache, void *valbuf)
|
| {
|
| - char buf[MAX_REGISTER_SIZE];
|
| + gdb_byte buf[MAX_REGISTER_SIZE];
|
| int len = TYPE_LENGTH (type);
|
| int reg, regsz;
|
|
|
| @@ -326,11 +326,11 @@ mn10300_write_pc (struct regcache *regcache, CORE_ADDR val)
|
| so we need a single byte breakpoint. Matsushita hasn't defined
|
| one, so we defined it ourselves. */
|
|
|
| -const static unsigned char *
|
| +static const unsigned char *
|
| mn10300_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *bp_addr,
|
| int *bp_size)
|
| {
|
| - static char breakpoint[] = {0xff};
|
| + static gdb_byte breakpoint[] = {0xff};
|
| *bp_size = 1;
|
| return breakpoint;
|
| }
|
| @@ -1231,7 +1231,8 @@ mn10300_push_dummy_call (struct gdbarch *gdbarch,
|
| int len, arg_len;
|
| int stack_offset = 0;
|
| int argnum;
|
| - char *val, valbuf[MAX_REGISTER_SIZE];
|
| + const gdb_byte *val;
|
| + gdb_byte valbuf[MAX_REGISTER_SIZE];
|
|
|
| /* This should be a nop, but align the stack just in case something
|
| went wrong. Stacks are four byte aligned on the mn10300. */
|
| @@ -1280,7 +1281,7 @@ mn10300_push_dummy_call (struct gdbarch *gdbarch,
|
| else
|
| {
|
| arg_len = TYPE_LENGTH (value_type (*args));
|
| - val = (char *) value_contents (*args);
|
| + val = value_contents (*args);
|
| }
|
|
|
| while (regs_used < 2 && arg_len > 0)
|
|
|