diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2020-08-31 21:05:37 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2020-08-31 21:05:37 -0400 |
commit | 2de01bdb2e25b81e7d65139ac4b767d2ff5eb5c7 (patch) | |
tree | 908247dda591ab9328c0946da807ba61409693bb | |
parent | 6a42ec96cab650c17890ca38da357f47e2f54071 (diff) | |
download | gdb-2de01bdb2e25b81e7d65139ac4b767d2ff5eb5c7.zip gdb-2de01bdb2e25b81e7d65139ac4b767d2ff5eb5c7.tar.gz gdb-2de01bdb2e25b81e7d65139ac4b767d2ff5eb5c7.tar.bz2 |
gdb: fix indentation of struct field_info
The indentation is off, fix it before doing other changes.
gdb/ChangeLog:
* dwarf2/read.c (struct field_info): Fix indentation.
Change-Id: Ife6a3d017abcf0a33e49e47e51429e95d504343c
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/dwarf2/read.c | 56 |
2 files changed, 32 insertions, 28 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cc998d5..329c351 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-08-31 Simon Marchi <simon.marchi@polymtl.ca> + + * dwarf2/read.c (struct field_info): Fix indentation. + 2020-08-31 Simon Marchi <simon.marchi@efficios.com> * frame-unwind.h (frame_prev_register_ftype): Fix adjective diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 0ac8533..fe66dd3 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -1190,40 +1190,40 @@ struct fnfieldlist pass lists of data member fields and lists of member function fields in an instance of a field_info structure, as defined below. */ struct field_info - { - /* List of data member and baseclasses fields. */ - std::vector<struct nextfield> fields; - std::vector<struct nextfield> baseclasses; +{ + /* List of data member and baseclasses fields. */ + std::vector<struct nextfield> fields; + std::vector<struct nextfield> baseclasses; - /* Set if the accessibility of one of the fields is not public. */ - int non_public_fields = 0; + /* Set if the accessibility of one of the fields is not public. */ + int non_public_fields = 0; - /* Member function fieldlist array, contains name of possibly overloaded - member function, number of overloaded member functions and a pointer - to the head of the member function field chain. */ - std::vector<struct fnfieldlist> fnfieldlists; + /* Member function fieldlist array, contains name of possibly overloaded + member function, number of overloaded member functions and a pointer + to the head of the member function field chain. */ + std::vector<struct fnfieldlist> fnfieldlists; - /* typedefs defined inside this class. TYPEDEF_FIELD_LIST contains head of - a NULL terminated list of TYPEDEF_FIELD_LIST_COUNT elements. */ - std::vector<struct decl_field> typedef_field_list; + /* typedefs defined inside this class. TYPEDEF_FIELD_LIST contains head of + a NULL terminated list of TYPEDEF_FIELD_LIST_COUNT elements. */ + std::vector<struct decl_field> typedef_field_list; - /* Nested types defined by this class and the number of elements in this - list. */ - std::vector<struct decl_field> nested_types_list; + /* Nested types defined by this class and the number of elements in this + list. */ + std::vector<struct decl_field> nested_types_list; - /* If non-null, this is the variant part we are currently - reading. */ - variant_part_builder *current_variant_part = nullptr; - /* This holds all the top-level variant parts attached to the type - we're reading. */ - std::vector<variant_part_builder> variant_parts; + /* If non-null, this is the variant part we are currently + reading. */ + variant_part_builder *current_variant_part = nullptr; + /* This holds all the top-level variant parts attached to the type + we're reading. */ + std::vector<variant_part_builder> variant_parts; - /* Return the total number of fields (including baseclasses). */ - int nfields () const - { - return fields.size () + baseclasses.size (); - } - }; + /* Return the total number of fields (including baseclasses). */ + int nfields () const + { + return fields.size () + baseclasses.size (); + } +}; /* Loaded secondary compilation units are kept in memory until they have not been referenced for the processing of this many |