Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Frysinger <vapier@gentoo.org>2010-04-14 00:28:19 +0400
committerMichael Frysinger <vapier@gentoo.org>2010-04-14 00:28:19 +0400
commit110429f3f172630ba5a9a089a3cee1969f8d8dcb (patch)
tree8082716c660bf49d72479632b913cdb90d9deae1 /include/gdb
parent0ef4bb7c5003d6a841068725e089c233b6ed304e (diff)
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')
-rw-r--r--include/gdb/ChangeLog4
-rw-r--r--include/gdb/remote-sim.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/include/gdb/ChangeLog b/include/gdb/ChangeLog
index 3b84cad18..119264eb3 100644
--- a/include/gdb/ChangeLog
+++ b/include/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2010-04-13 Mike Frysinger <vapier@gentoo.org>
+
+ * remote-sim.h (sim_write): Add const to buf arg.
+
2009-11-24 DJ Delorie <dj@redhat.com>
* sim-rx.h: New.
diff --git a/include/gdb/remote-sim.h b/include/gdb/remote-sim.h
index cfb1c1141..37f029ad7 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