aboutsummaryrefslogtreecommitdiff
path: root/sim/sh
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-04-14 07:38:06 +0000
committerMike Frysinger <vapier@gentoo.org>2010-04-14 07:38:06 +0000
commit5558e7e691534636afa28f6bf68bfd83530d8054 (patch)
tree4f830ca8baba1d6598b383d6f82566ef12493cfe /sim/sh
parente1caee70eebe9b2aad731f87a94237568d6fa9ac (diff)
downloadgdb-5558e7e691534636afa28f6bf68bfd83530d8054.zip
gdb-5558e7e691534636afa28f6bf68bfd83530d8054.tar.gz
gdb-5558e7e691534636afa28f6bf68bfd83530d8054.tar.bz2
sim: constify sim_write source buffer (part 2)
As pointed out by Sandra Loosemore, a bunch of targets define sim_write themselves instead of using the common/ code. So constify them too. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sim/sh')
-rw-r--r--sim/sh/ChangeLog4
-rw-r--r--sim/sh/interp.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/sim/sh/ChangeLog b/sim/sh/ChangeLog
index fb8e8ff..82ab457 100644
--- a/sim/sh/ChangeLog
+++ b/sim/sh/ChangeLog
@@ -1,3 +1,7 @@
+2010-04-14 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (sim_write): Add const to buffer arg.
+
2010-01-12 Masaki Muranaka <monaka@monami-software.com>
* interp.c: Don't include sysdep.h.
diff --git a/sim/sh/interp.c b/sim/sh/interp.c
index 2b20444..0d1360f 100644
--- a/sim/sh/interp.c
+++ b/sim/sh/interp.c
@@ -81,7 +81,7 @@
extern unsigned short sh_jump_table[], sh_dsp_table[0x1000], ppi_table[];
-int sim_write (SIM_DESC sd, SIM_ADDR addr, unsigned char *buffer, int size);
+int sim_write (SIM_DESC sd, SIM_ADDR addr, const unsigned char *buffer, int size);
#define O_RECOMPILE 85
#define DEFINE_TABLE
@@ -2141,7 +2141,7 @@ int
sim_write (sd, addr, buffer, size)
SIM_DESC sd;
SIM_ADDR addr;
- unsigned char *buffer;
+ const unsigned char *buffer;
int size;
{
int i;