]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Constify add_com_suppress_notification
authorTom Tromey <tom@tromey.com>
Wed, 11 Oct 2017 00:12:06 +0000 (18:12 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 7 Nov 2017 20:59:08 +0000 (13:59 -0700)
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.

gdb/ChangeLog
gdb/cli/cli-decode.c
gdb/command.h
gdb/stack.c
gdb/stack.h

index 6f103aea30d7165d6aa6f586d22da25cb06dec58..96c79651778fb465841430dbeebfac90579e0c19 100644 (file)
@@ -1,3 +1,9 @@
+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.
index 5fc3187001e53a6e1809fe9df1c7d5f1ec0b388c..f66bb2a3d8e8c03ce8b9c3ad664bece3999c9e80 100644 (file)
@@ -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;
index 71ad71d953819a103362c5852316beb0445d9e01..c7922a0c3aa6cc1613c461c6c454cc7d6aab06ac 100644 (file)
@@ -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 *,
index 42cb7369d159e2074b19c7efec98f6e8f33a9319..24fad3ceb27bcfba76c110a48a1c927d77918f2f 100644 (file)
@@ -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 ();
 
index 3379318cca545874759a22f615cd529d2369b4d7..563229fea4a7f0361227a66a13ebe1222a2bb54a 100644 (file)
@@ -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,