This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Constify maintenance_info_program_spaces_command
- From: Tom Tromey <tromey at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 27 Sep 2017 14:58:21 -0000
- Subject: [binutils-gdb] Constify maintenance_info_program_spaces_command
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9c504b5d34803ca2520e554aceaa2e69c141dc89
commit 9c504b5d34803ca2520e554aceaa2e69c141dc89
Author: Tom Tromey <tom@tromey.com>
Date: Tue Sep 12 21:15:46 2017 -0600
Constify maintenance_info_program_spaces_command
gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>
* progspace.c (maintenance_info_program_spaces_command):
Constify.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/progspace.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9a77b0d..a32596e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2017-09-27 Tom Tromey <tom@tromey.com>
+ * progspace.c (maintenance_info_program_spaces_command):
+ Constify.
+
+2017-09-27 Tom Tromey <tom@tromey.com>
+
* compile/compile.c (check_raw_argument, compile_file_command)
(compile_code_command, compile_print_command): Constify.
diff --git a/gdb/progspace.c b/gdb/progspace.c
index 0f3ac81..41e8cd0 100644
--- a/gdb/progspace.c
+++ b/gdb/progspace.c
@@ -345,7 +345,7 @@ valid_program_space_id (int num)
indicating which the program space to print information about. */
static void
-maintenance_info_program_spaces_command (char *args, int from_tty)
+maintenance_info_program_spaces_command (const char *args, int from_tty)
{
int requested = -1;