diff options
author | Tom Tromey <tom@tromey.com> | 2017-10-10 18:12:06 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-11-07 13:59:08 -0700 |
commit | 1ee870c5249864d36717a08864c60d7166b6b292 (patch) | |
tree | ff5d133249c44d7f26682c5bd5a71cdc770f60a4 /gdb | |
parent | ee7ddd713206fdf02512a9fb3fe928a210200c11 (diff) | |
download | gdb-1ee870c5249864d36717a08864c60d7166b6b292.zip gdb-1ee870c5249864d36717a08864c60d7166b6b292.tar.gz gdb-1ee870c5249864d36717a08864c60d7166b6b292.tar.bz2 |
Constify add_com_suppress_notification
This constifies add_com_suppress_notification and fixes the one
caller.
gdb/ChangeLog
2017-11-07 Tom Tromey <tom@tromey.com>
* stack.c (select_frame_command): Constify.
* cli/cli-decode.c (add_com_suppress_notification): Constify.
* command.h (add_com_suppress_notification): Constify.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/cli/cli-decode.c | 2 | ||||
-rw-r--r-- | gdb/command.h | 2 | ||||
-rw-r--r-- | gdb/stack.c | 2 | ||||
-rw-r--r-- | gdb/stack.h | 2 |
5 files changed, 10 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6f103ae..96c7965 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2017-11-07 Tom Tromey <tom@tromey.com> + * stack.c (select_frame_command): Constify. + * cli/cli-decode.c (add_com_suppress_notification): Constify. + * command.h (add_com_suppress_notification): Constify. + +2017-11-07 Tom Tromey <tom@tromey.com> + * breakpoint.c (stop_command): Constify. * cli/cli-decode.c (struct cmd_list_element): Constify. * command.h (add_abbrev_prefix_cmd): Constify. diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index 5fc3187..f66bb2a 100644 --- a/gdb/cli/cli-decode.c +++ b/gdb/cli/cli-decode.c @@ -950,7 +950,7 @@ add_com_alias (const char *name, const char *oldname, enum command_class theclas struct cmd_list_element * add_com_suppress_notification (const char *name, enum command_class theclass, - cmd_cfunc_ftype *fun, const char *doc, + cmd_const_cfunc_ftype *fun, const char *doc, int *suppress_notification) { struct cmd_list_element *element; diff --git a/gdb/command.h b/gdb/command.h index 71ad71d..c7922a0 100644 --- a/gdb/command.h +++ b/gdb/command.h @@ -274,7 +274,7 @@ extern struct cmd_list_element *add_com_alias (const char *, const char *, extern struct cmd_list_element *add_com_suppress_notification (const char *name, enum command_class theclass, - cmd_cfunc_ftype *fun, const char *doc, + cmd_const_cfunc_ftype *fun, const char *doc, int *supress_notification); extern struct cmd_list_element *add_info (const char *, diff --git a/gdb/stack.c b/gdb/stack.c index 42cb736..24fad3c 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -2270,7 +2270,7 @@ find_relative_frame (struct frame_info *frame, int *level_offset_ptr) expressions. */ void -select_frame_command (char *level_exp, int from_tty) +select_frame_command (const char *level_exp, int from_tty) { struct frame_info *prev_frame = get_selected_frame_if_set (); diff --git a/gdb/stack.h b/gdb/stack.h index 3379318..563229f 100644 --- a/gdb/stack.h +++ b/gdb/stack.h @@ -20,7 +20,7 @@ #ifndef STACK_H #define STACK_H -void select_frame_command (char *level_exp, int from_tty); +void select_frame_command (const char *level_exp, int from_tty); gdb::unique_xmalloc_ptr<char> find_frame_funname (struct frame_info *frame, enum language *funlang, |