aboutsummaryrefslogtreecommitdiff
path: root/include/gdb/remote-sim.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-04-13 20:28:20 +0000
committerMike Frysinger <vapier@gentoo.org>2010-04-13 20:28:20 +0000
commitcb1cc9c67ab42392913b61d630a3f72369e1c9ac (patch)
tree685df59ca6ef1d54cef91972f75ffb9edb600abe /include/gdb/remote-sim.h
parentad91cd991727e8ff8f8bc84f65943d9de0843b14 (diff)
downloadfsf-binutils-gdb-cb1cc9c67ab42392913b61d630a3f72369e1c9ac.zip
fsf-binutils-gdb-cb1cc9c67ab42392913b61d630a3f72369e1c9ac.tar.gz
fsf-binutils-gdb-cb1cc9c67ab42392913b61d630a3f72369e1c9ac.tar.bz2
sim: constify sim_write source buffer
Most the sim write functions declare their source buffer const because they only ever read from it. The global sim_write() function does not follow this convention though which causes some warnings when trying to pass it const strings or buffers. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/gdb/remote-sim.h')
-rw-r--r--include/gdb/remote-sim.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/gdb/remote-sim.h b/include/gdb/remote-sim.h
index cfb1c11..37f029a 100644
--- a/include/gdb/remote-sim.h
+++ b/include/gdb/remote-sim.h
@@ -175,7 +175,7 @@ int sim_read PARAMS ((SIM_DESC sd, SIM_ADDR mem, unsigned char *buf, int length)
memory. Store bytes starting at virtual address MEM. Result is
number of bytes write, or zero if error. */
-int sim_write PARAMS ((SIM_DESC sd, SIM_ADDR mem, unsigned char *buf, int length));
+int sim_write PARAMS ((SIM_DESC sd, SIM_ADDR mem, const unsigned char *buf, int length));
/* Fetch register REGNO storing its raw (target endian) value in the