summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdjunior Barbosa Machado <emachado@linux.vnet.ibm.com>2013-04-22 15:50:57 +0000
committerEdjunior Barbosa Machado <emachado@linux.vnet.ibm.com>2013-04-22 15:50:57 +0000
commit5fda2332f3403df3e1c37da3e3697d6fb6bc4706 (patch)
tree1e6cd85fe7a9c67a9ff4626ef854624ae763fc86
parente7d5abf103017e9e74d666e6ea574d8f9f248ac8 (diff)
downloadbinutils-gdb-5fda2332f3403df3e1c37da3e3697d6fb6bc4706.tar.gz
2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
* remote-sim.c (dump_mem): Change the type of 'buf' parameter from 'char *' to 'gdb_byte *'. (gdbsim_store_register): Change the type of 'tmp' from 'char' to 'gdb_byte'.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/remote-sim.c6
2 files changed, 10 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d6014ce18de..7082ac6ec5e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
+
+ * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
+ 'char *' to 'gdb_byte *'.
+ (gdbsim_store_register): Change the type of 'tmp' from 'char' to
+ 'gdb_byte'.
+
2013-04-22 Yao Qi <yao@codesourcery.com>
* infrun.c: Fix typo in comment.
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index ae039502dde..fda373577ee 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -46,7 +46,7 @@
extern void _initialize_remote_sim (void);
-static void dump_mem (char *buf, int len);
+static void dump_mem (gdb_byte *buf, int len);
static void init_callbacks (void);
@@ -271,7 +271,7 @@ sim_inferior_data_cleanup (struct inferior *inf, void *data)
}
static void
-dump_mem (char *buf, int len)
+dump_mem (gdb_byte *buf, int len)
{
printf_filtered ("\t");
@@ -514,7 +514,7 @@ gdbsim_store_register (struct target_ops *ops,
}
else if (gdbarch_register_sim_regno (gdbarch, regno) >= 0)
{
- char tmp[MAX_REGISTER_SIZE];
+ gdb_byte tmp[MAX_REGISTER_SIZE];
int nr_bytes;
regcache_cooked_read (regcache, regno, tmp);