diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-08-03 08:41:23 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-08-03 08:41:23 +0000 |
commit | 98691afe51bfadbf15011deb2bf7fbd37e428edb (patch) | |
tree | ae04c0ddb9a1ddbc3e5ca52a92abe969e9c4ce39 | |
parent | e255d535bb9b9e6d68a31731c6543e6e34950422 (diff) | |
download | gdb-98691afe51bfadbf15011deb2bf7fbd37e428edb.zip gdb-98691afe51bfadbf15011deb2bf7fbd37e428edb.tar.gz gdb-98691afe51bfadbf15011deb2bf7fbd37e428edb.tar.bz2 |
Thu Aug 3 15:02:23 2000 Andrew Cagney <cagney@b1.cygnus.com>
* remote-mips.c (mips_expect, mips_expect_timeout, common_open,
fputs_readable): Make string pointer arguments constant.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/remote-mips.c | 11 |
2 files changed, 11 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ac3a1b6..c6d3c7f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Thu Aug 3 15:02:23 2000 Andrew Cagney <cagney@b1.cygnus.com> + + * remote-mips.c (mips_expect, mips_expect_timeout, common_open, + fputs_readable): Make string pointer arguments constant. + Thu Aug 3 18:39:10 2000 Andrew Cagney <cagney@b1.cygnus.com> * MAINTAINERS, TODO: Tweeks. diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index 6a75327..4366fb8 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -526,7 +526,7 @@ fputc_readable (int ch, struct ui_file *file) ^x notation or in hex. */ static void -fputs_readable (char *string, struct ui_file *file) +fputs_readable (const char *string, struct ui_file *file) { int c; @@ -540,9 +540,9 @@ fputs_readable (char *string, struct ui_file *file) */ int -mips_expect_timeout (char *string, int timeout) +mips_expect_timeout (const char *string, int timeout) { - char *p = string; + const char *p = string; if (remote_debug) { @@ -596,7 +596,7 @@ mips_expect_timeout (char *string, int timeout) */ int -mips_expect (char *string) +mips_expect (const char *string) { return mips_expect_timeout (string, 2); } @@ -1499,7 +1499,8 @@ mips_initialize (void) /* Open a connection to the remote board. */ static void common_open (struct target_ops *ops, char *name, int from_tty, - enum mips_monitor_type new_monitor, char *new_monitor_prompt) + enum mips_monitor_type new_monitor, + const char *new_monitor_prompt) { char *ptype; char *serial_port_name; |