aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-06-12 14:13:22 -0600
committerTom Tromey <tom@tromey.com>2022-12-19 08:18:59 -0700
commitdad6b350f986a58abe469f4584ac515e7ac17879 (patch)
treed0112c62a3ff0ae9addccd5983035b443d8742a0 /gdb/mi
parent6829683679ce66f3ff3aa184609afa59ac349637 (diff)
downloadfsf-binutils-gdb-dad6b350f986a58abe469f4584ac515e7ac17879.zip
fsf-binutils-gdb-dad6b350f986a58abe469f4584ac515e7ac17879.tar.gz
fsf-binutils-gdb-dad6b350f986a58abe469f4584ac515e7ac17879.tar.bz2
Use bool constants for value_print_options
This changes the uses of value_print_options to use 'true' and 'false' rather than integers.
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/mi-cmd-stack.c2
-rw-r--r--gdb/mi/mi-main.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c
index f0af7c9..b14f41d 100644
--- a/gdb/mi/mi-cmd-stack.c
+++ b/gdb/mi/mi-cmd-stack.c
@@ -545,7 +545,7 @@ list_arg_or_local (const struct frame_arg *arg, enum what_to_list what,
struct value_print_options opts;
get_no_prettyformat_print_options (&opts);
- opts.deref_ref = 1;
+ opts.deref_ref = true;
common_val_print (arg->val, &stb, 0, &opts,
language_def (arg->sym->language ()));
}
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 1b9948c..e8bc904 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -1111,7 +1111,7 @@ output_register (frame_info_ptr frame, int regnum, int format,
string_file stb;
get_formatted_print_options (&opts, format);
- opts.deref_ref = 1;
+ opts.deref_ref = true;
common_val_print (val, &stb, 0, &opts, current_language);
uiout->field_stream ("value", stb);
}
@@ -1195,7 +1195,7 @@ mi_cmd_data_evaluate_expression (const char *command, char **argv, int argc)
/* Print the result of the expression evaluation. */
get_user_print_options (&opts);
- opts.deref_ref = 0;
+ opts.deref_ref = false;
common_val_print (val, &stb, 0, &opts, current_language);
uiout->field_stream ("value", stb);
@@ -2484,7 +2484,7 @@ print_variable_or_computed (const char *expression, enum print_values values)
struct value_print_options opts;
get_no_prettyformat_print_options (&opts);
- opts.deref_ref = 1;
+ opts.deref_ref = true;
common_val_print (val, &stb, 0, &opts, current_language);
uiout->field_stream ("value", stb);
}
@@ -2494,7 +2494,7 @@ print_variable_or_computed (const char *expression, enum print_values values)
struct value_print_options opts;
get_no_prettyformat_print_options (&opts);
- opts.deref_ref = 1;
+ opts.deref_ref = true;
common_val_print (val, &stb, 0, &opts, current_language);
uiout->field_stream ("value", stb);
}