aboutsummaryrefslogtreecommitdiff
path: root/gdb/p-valprint.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/p-valprint.c
parent6829683679ce66f3ff3aa184609afa59ac349637 (diff)
downloadgdb-dad6b350f986a58abe469f4584ac515e7ac17879.zip
gdb-dad6b350f986a58abe469f4584ac515e7ac17879.tar.gz
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/p-valprint.c')
-rw-r--r--gdb/p-valprint.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c
index 2786a8e..b74c424 100644
--- a/gdb/p-valprint.c
+++ b/gdb/p-valprint.c
@@ -408,7 +408,7 @@ pascal_language::value_print (struct value *val, struct ui_file *stream,
struct type *type = value_type (val);
struct value_print_options opts = *options;
- opts.deref_ref = 1;
+ opts.deref_ref = true;
/* If it is a pointer, indicate what it points to.
@@ -619,7 +619,7 @@ pascal_object_print_value_fields (struct value *val, struct ui_file *stream,
v = value_field_bitfield (type, i, valaddr, 0, val);
- opts.deref_ref = 0;
+ opts.deref_ref = false;
common_val_print (v, stream, recurse + 1, &opts,
current_language);
}
@@ -649,7 +649,7 @@ pascal_object_print_value_fields (struct value *val, struct ui_file *stream,
{
struct value_print_options opts = *options;
- opts.deref_ref = 0;
+ opts.deref_ref = false;
struct value *v = value_primitive_field (val, 0, i,
value_type (val));
@@ -853,7 +853,7 @@ pascal_object_print_static_field (struct value *val,
}
opts = *options;
- opts.deref_ref = 0;
+ opts.deref_ref = false;
common_val_print (val, stream, recurse, &opts, current_language);
}