aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/cli/cli-decode.c2
-rw-r--r--gdb/command.h2
-rw-r--r--gdb/stack.c2
-rw-r--r--gdb/stack.h2
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,