diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2020-08-31 21:06:06 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2020-08-31 21:06:20 -0400 |
commit | 264fc0e27bf1a7f469f73867cb8f10f33f34415e (patch) | |
tree | 9f01f97c9b8954306fb12246116b7a2a78c1468d /gdb/dwarf2 | |
parent | 2de01bdb2e25b81e7d65139ac4b767d2ff5eb5c7 (diff) | |
download | gdb-264fc0e27bf1a7f469f73867cb8f10f33f34415e.zip gdb-264fc0e27bf1a7f469f73867cb8f10f33f34415e.tar.gz gdb-264fc0e27bf1a7f469f73867cb8f10f33f34415e.tar.bz2 |
gdb: change type of field_info::non_public_fields to bool
gdb/ChangeLog:
* dwarf2/read.c (struct field_info) <non_public_fields>: Change
type to bool.
(dwarf2_add_field): Use true instead of 1.
Change-Id: I7e9c86429402c28d4f15861d17976b9c50049f94
Diffstat (limited to 'gdb/dwarf2')
-rw-r--r-- | gdb/dwarf2/read.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index fe66dd3..c610ae4 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -1196,7 +1196,7 @@ struct field_info std::vector<struct nextfield> 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) |