diff options
author | Tom Tromey <tom@tromey.com> | 2017-09-09 20:55:20 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-09-27 08:44:14 -0600 |
commit | e4e3333549c96d2915bb888b7b347566c938e75a (patch) | |
tree | 59e0e78e6e18344d694293176ecf47d52a39ad46 | |
parent | 0450cc4ce8b4775c47e9aaa1c5a34e181b10ae98 (diff) | |
download | binutils-gdb-e4e3333549c96d2915bb888b7b347566c938e75a.tar.gz |
Constify add_cmd gdb_bfd.c
This constifies a command function in gdb_bfd.c.
gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>
* gdb_bfd.c (maintenance_info_bfds): Constify.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdb_bfd.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 54bc5b0b295..7cfd359a659 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2017-09-27 Tom Tromey <tom@tromey.com> + * gdb_bfd.c (maintenance_info_bfds): Constify. + +2017-09-27 Tom Tromey <tom@tromey.com> + * cli/cli-decode.c (add_cmd, set_cmd_cfunc): New function overloads. (do_add_cmd): Rename from add_cmd. Don't call set_cmd_cfunc. diff --git a/gdb/gdb_bfd.c b/gdb/gdb_bfd.c index d80b3fb7bcd..29080b852a5 100644 --- a/gdb/gdb_bfd.c +++ b/gdb/gdb_bfd.c @@ -974,7 +974,7 @@ print_one_bfd (void **slot, void *data) /* Implement the 'maint info bfd' command. */ static void -maintenance_info_bfds (char *arg, int from_tty) +maintenance_info_bfds (const char *arg, int from_tty) { struct ui_out *uiout = current_uiout; |