aboutsummaryrefslogtreecommitdiff
path: root/gdb/command.h
diff options
context:
space:
mode:
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2022-02-07 08:26:55 +0100
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2022-02-07 08:26:55 +0100
commitf36c8918018ae5036fafafd76df71084fc50a5a9 (patch)
tree464ea298737e2f6bf10f5a6e62a4b704c19d1083 /gdb/command.h
parent6a9d08661b361e497baa76dd6d8685f2cb593adb (diff)
downloadgdb-f36c8918018ae5036fafafd76df71084fc50a5a9.zip
gdb-f36c8918018ae5036fafafd76df71084fc50a5a9.tar.gz
gdb-f36c8918018ae5036fafafd76df71084fc50a5a9.tar.bz2
gdb/cli: convert cli_suppress_notification from int to bool
Convert the suppress_notification flag for the CLI from int to bool.
Diffstat (limited to 'gdb/command.h')
-rw-r--r--gdb/command.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/command.h b/gdb/command.h
index 1746fb4..258ec38 100644
--- a/gdb/command.h
+++ b/gdb/command.h
@@ -378,7 +378,7 @@ typedef void cmd_simple_func_ftype (const char *args, int from_tty);
struct cli_suppress_notification
{
/* Inferior, thread, frame selected notification suppressed? */
- int user_selected_context;
+ bool user_selected_context = false;
};
extern struct cli_suppress_notification cli_suppress_notification;
@@ -421,7 +421,7 @@ extern struct cmd_list_element *add_cmd_suppress_notification
(const char *name, enum command_class theclass,
cmd_simple_func_ftype *fun, const char *doc,
struct cmd_list_element **list,
- int *suppress_notification);
+ bool *suppress_notification);
extern struct cmd_list_element *add_alias_cmd (const char *,
cmd_list_element *,
@@ -467,7 +467,7 @@ extern struct cmd_list_element *add_prefix_cmd_suppress_notification
const char *doc, struct cmd_list_element **subcommands,
int allow_unknown,
struct cmd_list_element **list,
- int *suppress_notification);
+ bool *suppress_notification);
extern struct cmd_list_element *add_abbrev_prefix_cmd (const char *,
enum command_class,
@@ -615,7 +615,7 @@ extern cmd_list_element *add_com_alias (const char *name,
extern struct cmd_list_element *add_com_suppress_notification
(const char *name, enum command_class theclass,
cmd_simple_func_ftype *fun, const char *doc,
- int *supress_notification);
+ bool *supress_notification);
extern struct cmd_list_element *add_info (const char *,
cmd_simple_func_ftype *fun,