From: Simon Marchi Date: Tue, 1 Sep 2020 01:06:06 +0000 (-0400) Subject: gdb: change type of field_info::non_public_fields to bool X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=264fc0e27bf1a7f469f73867cb8f10f33f34415e;p=binutils-gdb.git gdb: change type of field_info::non_public_fields to bool gdb/ChangeLog: * dwarf2/read.c (struct field_info) : Change type to bool. (dwarf2_add_field): Use true instead of 1. Change-Id: I7e9c86429402c28d4f15861d17976b9c50049f94 --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 329c3517adb..7aadd870423 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2020-08-31 Simon Marchi + + * dwarf2/read.c (struct field_info) : Change + type to bool. + 2020-08-31 Simon Marchi * dwarf2/read.c (struct field_info): Fix indentation. diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index fe66dd36fca..c610ae4f068 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -1196,7 +1196,7 @@ struct field_info std::vector baseclasses; /* Set if the accessibility of one of the fields is not public. */ - int non_public_fields = 0; + bool non_public_fields = false; /* Member function fieldlist array, contains name of possibly overloaded member function, number of overloaded member functions and a pointer @@ -15015,7 +15015,7 @@ dwarf2_add_field (struct field_info *fip, struct die_info *die, else new_field->accessibility = dwarf2_default_access_attribute (die, cu); if (new_field->accessibility != DW_ACCESS_public) - fip->non_public_fields = 1; + fip->non_public_fields = true; attr = dwarf2_attr (die, DW_AT_virtuality, cu); if (attr != nullptr) @@ -15112,7 +15112,7 @@ dwarf2_add_field (struct field_info *fip, struct die_info *die, { FIELD_ARTIFICIAL (*fp) = 1; new_field->accessibility = DW_ACCESS_private; - fip->non_public_fields = 1; + fip->non_public_fields = true; } } else if (die->tag == DW_TAG_member || die->tag == DW_TAG_variable)