]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb:
authorSteve Ellcey <sje@cup.hp.com>
Fri, 15 Mar 2013 17:53:44 +0000 (17:53 +0000)
committerSteve Ellcey <sje@cup.hp.com>
Fri, 15 Mar 2013 17:53:44 +0000 (17:53 +0000)
2013-03-15  Steve Ellcey  <sellcey@mips.com>

* remote-sim.c (sim_command_completer): Make char arguments const.

include:

2013-03-15  Steve Ellcey  <sellcey@mips.com>

* gdb/remote-sim.h (sim_command_completer): Make char arguments const.

sim:

2013-03-15  Steve Ellcey  <sellcey@mips.com>

* arm/wrapper.c (sim_complete_command): Make char arguments const.
* avr/interp.c (sim_complete_command): Ditto.
* common/sim-options.c (sim_complete_command): Ditto.
* cr16/interp.c (sim_complete_command): Ditto.
* erc32/interf.c (sim_complete_command): Ditto.
* m32c/gdb-if.c (sim_complete_command): Ditto.
* microblaze/interp.c (sim_complete_command): Ditto.
* ppc/sim_calls.c (sim_complete_command): Ditto.
* rl78/gdb-if.c (sim_complete_command): Ditto.
* rx/gdb-if.c (sim_complete_command): Ditto.
* sh/interp.c (sim_complete_command): Ditto.

16 files changed:
gdb/ChangeLog
gdb/remote-sim.c
include/gdb/ChangeLog
include/gdb/remote-sim.h
sim/ChangeLog
sim/arm/wrapper.c
sim/avr/interp.c
sim/common/sim-options.c
sim/cr16/interp.c
sim/erc32/interf.c
sim/m32c/gdb-if.c
sim/microblaze/interp.c
sim/ppc/sim_calls.c
sim/rl78/gdb-if.c
sim/rx/gdb-if.c
sim/sh/interp.c

index 07cb80d4d343e584a6145de7b86468697d1afe40..da461ecb5d800fb28db7c00a23209eb06b058260 100644 (file)
@@ -1,3 +1,7 @@
+2013-03-15  Steve Ellcey  <sellcey@mips.com>
+
+       * remote-sim.c (sim_command_completer): Make char arguments const.
+
 2013-03-15  Tom Tromey  <tromey@redhat.com>
 
        PR c++/15116:
index 860eaf33adfd3299cdd0db6205270f0c353cb00c..a578bbc07401f2924b99dd840b091fabefb504df 100644 (file)
@@ -1196,7 +1196,8 @@ simulator_command (char *args, int from_tty)
 }
 
 static VEC (char_ptr) *
-sim_command_completer (struct cmd_list_element *ignore, char *text, char *word)
+sim_command_completer (struct cmd_list_element *ignore, const char *text,
+                      const char *word)
 {
   struct sim_inferior_data *sim_data;
   char **tmp;
index d9618014a109348d9e9312155c8c10826be334ff..142f87ae306ae032957d6a2205830ecb4be9f5fb 100644 (file)
@@ -1,3 +1,7 @@
+2013-03-15  Steve Ellcey  <sellcey@mips.com>
+
+       * gdb/remote-sim.h (sim_command_completer): Make char arguments const.
+
 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
 
        Update year range in copyright notice of all files.
index 43c22ebc3bb1ffcfc8f23de0b88d3a8af7f6afaf..113030c8215aba872b2cbc2bc8b8949e57745577 100644 (file)
@@ -278,7 +278,7 @@ void sim_do_command (SIM_DESC sd, char *cmd);
 /* Complete a command based on the available sim commands.  Returns an
    array of possible matches.  */
 
-char **sim_complete_command (SIM_DESC sd, char *text, char *word);
+char **sim_complete_command (SIM_DESC sd, const char *text, const char *word);
 
 #ifdef __cplusplus
 }
index 84d8d02b8067e82e80ae8f459dd9f45b7c57485c..bc3c89412e1dfe3acedf840d71a8eeb16b0cb243 100644 (file)
@@ -1,3 +1,17 @@
+2013-03-15  Steve Ellcey  <sellcey@mips.com>
+
+       * arm/wrapper.c (sim_complete_command): Make char arguments const.
+       * avr/interp.c (sim_complete_command): Ditto.
+       * common/sim-options.c (sim_complete_command): Ditto.
+       * cr16/interp.c (sim_complete_command): Ditto.
+       * erc32/interf.c (sim_complete_command): Ditto.
+       * m32c/gdb-if.c (sim_complete_command): Ditto.
+       * microblaze/interp.c (sim_complete_command): Ditto.
+       * ppc/sim_calls.c (sim_complete_command): Ditto.
+       * rl78/gdb-if.c (sim_complete_command): Ditto.
+       * rx/gdb-if.c (sim_complete_command): Ditto.
+       * sh/interp.c (sim_complete_command): Ditto.
+
 2013-01-01  Joel Brobecker  <brobecker@adacore.com>
 
        Update year range in copyright notice of all files.
index 7f794a3440ee5f0b446651ae7319c3a70955b022..a4b76835a5044d7e0c0c4927aaed670d9d2de39e 100644 (file)
@@ -945,7 +945,7 @@ sim_set_callbacks (ptr)
 }
 
 char **
-sim_complete_command (SIM_DESC sd, char *text, char *word)
+sim_complete_command (SIM_DESC sd, const char *text, const char *word)
 {
   return NULL;
 }
index a5212e79a7c8bddc300ec5387bf45ff80e24891f..23fc8dcbd5bab95caf317e74d2b5337e24cc5408 100644 (file)
@@ -1855,7 +1855,7 @@ sim_set_callbacks (host_callback *ptr)
 }
 
 char **
-sim_complete_command (SIM_DESC sd, char *text, char *word)
+sim_complete_command (SIM_DESC sd, const char *text, const char *word)
 {
   return NULL;
 }
index 73f84fb3dec02fdfd4d3927afa24282a47609751..fdc05a4a0e3b6c561156735b90b726bcc136ddc4 100644 (file)
@@ -950,7 +950,7 @@ complete_option_list (char **ret, size_t *cnt, const struct option_list *ol,
    completed is stored in @word.  Trailing text of @word is not.  */
 
 char **
-sim_complete_command (SIM_DESC sd, char *text, char *word)
+sim_complete_command (SIM_DESC sd, const char *text, const char *word)
 {
   char **ret = NULL;
   size_t cnt = 1;
index 2caffc24b2c7133f0b20d91d174c297ed72e3dee..3af58f6417642b62e428f5dbe0000420aae470c6 100644 (file)
@@ -1553,7 +1553,7 @@ sim_store_register (sd, rn, memory, length)
 }
 
 char **
-sim_complete_command (SIM_DESC sd, char *text, char *word)
+sim_complete_command (SIM_DESC sd, const char *text, const char *word)
 {
   return NULL;
 }
index 1ec02befdd7199f6a3742a8194b01d1f79925f2a..e2db44ea7fbf4e3f5e617e85d52ba313834ef934 100644 (file)
@@ -485,7 +485,7 @@ sim_do_command(sd, cmd)
 }
 
 char **
-sim_complete_command (SIM_DESC sd, char *text, char *word)
+sim_complete_command (SIM_DESC sd, const char *text, const char *word)
 {
   return NULL;
 }
index d02d24ec4493e36f3bcfbc3c63fe79cc0c4eb53a..83e9f1e9560a81fe594d6f9f49b8dbf6c65b553d 100644 (file)
@@ -704,7 +704,7 @@ sim_do_command (SIM_DESC sd, char *cmd)
 }
 
 char **
-sim_complete_command (SIM_DESC sd, char *text, char *word)
+sim_complete_command (SIM_DESC sd, const char *text, const char *word)
 {
   return NULL;
 }
index d09327dbfe43153ff928ba52b17dea51dfd5e403..72a459361233b2526ed6d008f62d2fa8f54dd7e8 100644 (file)
@@ -1090,7 +1090,7 @@ sim_set_callbacks (host_callback *ptr)
 }
 
 char **
-sim_complete_command (SIM_DESC sd, char *text, char *word)
+sim_complete_command (SIM_DESC sd, const char *text, const char *word)
 {
   return NULL;
 }
index a4ceb3fbe19b1b566e76518b2dbb9d43595aa86b..a3ebba0f5b318520882b05b6c98e961883b72c4b 100644 (file)
@@ -259,7 +259,7 @@ sim_do_command (SIM_DESC sd, char *cmd)
 }
 
 char **
-sim_complete_command (SIM_DESC sd, char *text, char *word)
+sim_complete_command (SIM_DESC sd, const char *text, const char *word)
 {
   return NULL;
 }
index 0c131a199739e4a47cca9aaaaa7b03ef8d156d49..04d4f0e110760faf8d715652a184ef902bb7e57f 100644 (file)
@@ -567,7 +567,7 @@ sim_do_command (SIM_DESC sd, char *cmd)
 /* Stub for command completion.  */
 
 char **
-sim_complete_command (SIM_DESC sd, char *text, char *word)
+sim_complete_command (SIM_DESC sd, const char *text, const char *word)
 {
     return NULL;
 }
index 248fdcacf8212820d91196363a102ca51a34f317..2e41b0917a634a31016506e97696836e7c6b5990 100644 (file)
@@ -864,7 +864,7 @@ sim_do_command (SIM_DESC sd, char *cmd)
 }
 
 char **
-sim_complete_command (SIM_DESC sd, char *text, char *word)
+sim_complete_command (SIM_DESC sd, const char *text, const char *word)
 {
   return NULL;
 }
index e9313c76cbd5a2912ae3554c904a7d51658fa9b0..4b2ca7e5a990a459a402569126cd0ec852861903 100644 (file)
@@ -2789,7 +2789,7 @@ sim_set_callbacks (p)
 }
 
 char **
-sim_complete_command (SIM_DESC sd, char *text, char *word)
+sim_complete_command (SIM_DESC sd, const char *text, const char *word)
 {
   return NULL;
 }