]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
authorEdjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
Mon, 22 Apr 2013 15:50:57 +0000 (15:50 +0000)
committerEdjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
Mon, 22 Apr 2013 15:50:57 +0000 (15:50 +0000)
* 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'.

gdb/ChangeLog
gdb/remote-sim.c

index d6014ce18de1ad6ccc3c28deb5cc89b632b5ceef..7082ac6ec5ecb3f51a550a9141f317546bcf6dff 100644 (file)
@@ -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.
index ae039502dde38f11c0bcbce999379e50ca7fa9d5..fda373577eecc5f46978fb8973356bec9521da35 100644 (file)
@@ -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);