diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2018-10-31 13:39:58 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2018-12-17 23:36:05 +0000 |
commit | 9068261f1c254a8051d1098b87ab1ff99d525b7b (patch) | |
tree | ffeac769b24c1f99404892e286a428af7ee20efa /gdb/c-exp.y | |
parent | 87469ba2d2fc953796c7bb64e535d3f283756048 (diff) | |
download | binutils-9068261f1c254a8051d1098b87ab1ff99d525b7b.zip binutils-9068261f1c254a8051d1098b87ab1ff99d525b7b.tar.gz binutils-9068261f1c254a8051d1098b87ab1ff99d525b7b.tar.bz2 |
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.
Diffstat (limited to 'gdb/c-exp.y')
0 files changed, 0 insertions, 0 deletions