mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
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:
@ -675,7 +675,7 @@ valpy_format_string (PyObject *self, PyObject *args, PyObject *kw)
|
||||
|
||||
struct value_print_options opts;
|
||||
gdbpy_get_print_options (&opts);
|
||||
opts.deref_ref = 0;
|
||||
opts.deref_ref = false;
|
||||
|
||||
/* We need objects for booleans as the "p" flag for bools is new in
|
||||
Python 3.3. */
|
||||
@ -1169,7 +1169,7 @@ valpy_str (PyObject *self)
|
||||
struct value_print_options opts;
|
||||
|
||||
gdbpy_get_print_options (&opts);
|
||||
opts.deref_ref = 0;
|
||||
opts.deref_ref = false;
|
||||
|
||||
string_file stb;
|
||||
|
||||
|
Reference in New Issue
Block a user