summaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
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/infcmd.c
parent6829683679ce66f3ff3aa184609afa59ac349637 (diff)
downloadbinutils-gdb-dad6b350f986a58abe469f4584ac515e7ac17879.tar.gz
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/infcmd.c')
-rw-r--r--gdb/infcmd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index a27d3577b3a..1a25e22de28 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -2190,7 +2190,7 @@ default_print_one_register_info (struct ui_file *file,
enum bfd_endian byte_order = type_byte_order (regtype);
get_user_print_options (&opts);
- opts.deref_ref = 1;
+ opts.deref_ref = true;
common_val_print (val, &format_stream, 0, &opts, current_language);
@@ -2209,7 +2209,7 @@ default_print_one_register_info (struct ui_file *file,
/* Print the register in hex. */
get_formatted_print_options (&opts, 'x');
- opts.deref_ref = 1;
+ opts.deref_ref = true;
common_val_print (val, &format_stream, 0, &opts, current_language);
/* If not a vector register, print it also according to its
natural format. */
@@ -2217,7 +2217,7 @@ default_print_one_register_info (struct ui_file *file,
{
pad_to_column (format_stream, value_column_2);
get_user_print_options (&opts);
- opts.deref_ref = 1;
+ opts.deref_ref = true;
common_val_print (val, &format_stream, 0, &opts, current_language);
}
}