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.
This commit is contained in:
parent
ee7ddd7132
commit
1ee870c524
@ -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.
|
||||
|
@ -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;
|
||||
|
@ -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 *,
|
||||
|
@ -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 ();
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user