diff options
author | Tom Tromey <tom@tromey.com> | 2017-09-09 21:30:40 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-09-27 08:44:26 -0600 |
commit | 4465d9db2f8962640f3799a17851bef3b1be1a33 (patch) | |
tree | c51ea7873d1cc02712f0fc273ce31acaf3e30ef0 | |
parent | ad25e4234a3f370a693b9c392c5b54216aab4592 (diff) | |
download | fsf-binutils-gdb-4465d9db2f8962640f3799a17851bef3b1be1a33.zip fsf-binutils-gdb-4465d9db2f8962640f3799a17851bef3b1be1a33.tar.gz fsf-binutils-gdb-4465d9db2f8962640f3799a17851bef3b1be1a33.tar.bz2 |
Constify some functions in memattr.c
gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>
* memattr.c (enable_mem_command, disable_mem_command)
(delete_mem_command): Constify.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/memattr.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b31d87b..1d8c44c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2017-09-27 Tom Tromey <tom@tromey.com> + * memattr.c (enable_mem_command, disable_mem_command) + (delete_mem_command): Constify. + +2017-09-27 Tom Tromey <tom@tromey.com> + * value.c (show_convenience): Constify. 2017-09-27 Tom Tromey <tom@tromey.com> diff --git a/gdb/memattr.c b/gdb/memattr.c index c1ac978..5be6397 100644 --- a/gdb/memattr.c +++ b/gdb/memattr.c @@ -561,7 +561,7 @@ mem_enable (int num) } static void -enable_mem_command (char *args, int from_tty) +enable_mem_command (const char *args, int from_tty) { int num; struct mem_region *m; @@ -606,7 +606,7 @@ mem_disable (int num) } static void -disable_mem_command (char *args, int from_tty) +disable_mem_command (const char *args, int from_tty) { require_user_regions (from_tty); @@ -659,7 +659,7 @@ mem_delete (int num) } static void -delete_mem_command (char *args, int from_tty) +delete_mem_command (const char *args, int from_tty) { require_user_regions (from_tty); |