Use bool constants for value_print_options

This changes the uses of value_print_options to use 'true' and 'false'
rather than integers.
This commit is contained in:
Tom Tromey 2022-06-12 14:13:22 -06:00
parent 6829683679
commit dad6b350f9
19 changed files with 60 additions and 60 deletions

View file

@ -303,7 +303,7 @@ print_string_repr (PyObject *printer, const char *hint,
gdbpy_extract_lazy_string (py_str.get (), &addr, &type,
&length, &encoding);
local_opts.addressprint = 0;
local_opts.addressprint = false;
val_print_string (type, encoding.get (), addr, (int) length,
stream, &local_opts);
}
@ -338,7 +338,7 @@ print_string_repr (PyObject *printer, const char *hint,
{
struct value_print_options opts = *options;
opts.addressprint = 0;
opts.addressprint = false;
common_val_print (replacement, stream, recurse, &opts, language);
}
else
@ -506,7 +506,7 @@ print_children (PyObject *printer, const char *hint,
gdbpy_extract_lazy_string (py_v, &addr, &type, &length, &encoding);
local_opts.addressprint = 0;
local_opts.addressprint = false;
val_print_string (type, encoding.get (), addr, (int) length, stream,
&local_opts);
}