gdb/dwarf: Convert some predicates from int to bool
authorAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 31 Oct 2018 13:39:58 +0000 (13:39 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 17 Dec 2018 23:36:05 +0000 (23:36 +0000)
commit9068261f1c254a8051d1098b87ab1ff99d525b7b
treeffeac769b24c1f99404892e286a428af7ee20efa
parent87469ba2d2fc953796c7bb64e535d3f283756048
gdb/dwarf: Convert some predicates from int to bool

In the dwarf reader we have a set of predicates, these include the
different producer predicates and also some control predicates. The
older ones are declared as integers, while newer ones (added since the
C++ conversion) are bool.

This commit makes them all bool for consistency.  There should be no
user visible change after this commit.

gdb/ChangeLog:

* dwarf2read.c (struct dwarf2_cu): Convert the fields 'mark',
'has_loclist', 'checked_producer', 'producer_is_gxx_lt_4_6',
'producer_is_gcc_lt_4_3', 'producer_is_icc_lt_14',
'processing_has_namespace_info' from unsigned int to bool.  Update
comments.
(producer_is_icc_lt_14): Update return type.
(producer_is_gcc_lt_4_3): Likewise.
(producer_is_gxx_lt_4_6): Likewise.
(process_die): Write true instead of 1 into predicate fields.
(dwarf2_start_symtab): Likewise.
(var_decode_location): Likewise.
(dwarf2_mark_helper): Likewise.
(dwarf2_mark): Likewise.
(dwarf2_clear_marks): Write false instead of 0 into predicate
field.
(dwarf2_cu::dwarf2_cu): Initialise predicate fields to false, not
0.
gdb/ChangeLog
gdb/dwarf2read.c