diff options
author | Tom Tromey <tom@tromey.com> | 2022-06-12 14:13:22 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-12-19 08:18:59 -0700 |
commit | dad6b350f986a58abe469f4584ac515e7ac17879 (patch) | |
tree | d0112c62a3ff0ae9addccd5983035b443d8742a0 /gdb/ada-valprint.c | |
parent | 6829683679ce66f3ff3aa184609afa59ac349637 (diff) | |
download | fsf-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/ada-valprint.c')
-rw-r--r-- | gdb/ada-valprint.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c index 40c2614..92e96da 100644 --- a/gdb/ada-valprint.c +++ b/gdb/ada-valprint.c @@ -209,7 +209,7 @@ val_print_packed_array_elements (struct type *type, const gdb_byte *valaddr, { struct value_print_options opts = *options; - opts.deref_ref = 0; + opts.deref_ref = false; common_val_print (v0, stream, recurse + 1, &opts, current_language); annotate_elt_rep (i - i0); gdb_printf (stream, _(" %p[<repeats %u times>%p]"), @@ -222,7 +222,7 @@ val_print_packed_array_elements (struct type *type, const gdb_byte *valaddr, int j; struct value_print_options opts = *options; - opts.deref_ref = 0; + opts.deref_ref = false; for (j = i0; j < i; j += 1) { if (j > i0) @@ -658,7 +658,7 @@ print_field_values (struct value *value, struct value *outer_value, bit_pos % HOST_CHAR_BIT, bit_size, type->field (i).type ()); opts = *options; - opts.deref_ref = 0; + opts.deref_ref = false; common_val_print (v, stream, recurse + 1, &opts, language); } } @@ -666,7 +666,7 @@ print_field_values (struct value *value, struct value *outer_value, { struct value_print_options opts = *options; - opts.deref_ref = 0; + opts.deref_ref = false; struct value *v = value_field (value, i); common_val_print (v, stream, recurse + 1, &opts, language); @@ -1127,6 +1127,6 @@ ada_value_print (struct value *val0, struct ui_file *stream, } opts = *options; - opts.deref_ref = 1; + opts.deref_ref = true; common_val_print (val, stream, 0, &opts, current_language); } |