From dad6b350f986a58abe469f4584ac515e7ac17879 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 12 Jun 2022 14:13:22 -0600 Subject: Use bool constants for value_print_options This changes the uses of value_print_options to use 'true' and 'false' rather than integers. --- gdb/infcmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/infcmd.c') 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); } } -- cgit v1.2.1