]> sourceware.org Git - newlib-cygwin.git/commitdiff
sim: constify sim_write source buffer
authorMichael Frysinger <vapier@gentoo.org>
Tue, 13 Apr 2010 20:28:19 +0000 (20:28 +0000)
committerMichael Frysinger <vapier@gentoo.org>
Tue, 13 Apr 2010 20:28:19 +0000 (20:28 +0000)
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>
include/gdb/ChangeLog
include/gdb/remote-sim.h

index 3b84cad1879c40fd019dc4a821e2afb2d745d60a..119264eb34c72ee60369b104026e523b8b93bc19 100644 (file)
@@ -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.
index cfb1c1141d655cb015358a8f3a5654a9f23ccc91..37f029ad7436f3425f6be378c31e69e6969a1f95 100644 (file)
@@ -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
This page took 0.029794 seconds and 5 git commands to generate.