diff options
author | Doug Evans <dje@google.com> | 2014-05-15 15:45:05 -0700 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2014-05-15 15:45:05 -0700 |
commit | 83655187cbef02404645abcc98d607e22eeda573 (patch) | |
tree | 43528eda3d7e9a8c7724bbc4134c8f279989e4f0 /gdb/dwarf2read.c | |
parent | 8c217a4b684386aa5ce6a078dffbe63265a524e6 (diff) | |
download | gdb-83655187cbef02404645abcc98d607e22eeda573.zip gdb-83655187cbef02404645abcc98d607e22eeda573.tar.gz gdb-83655187cbef02404645abcc98d607e22eeda573.tar.bz2 |
* dwarf2read.c (read_structure_type): Delete outdated comments.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index bf1e3d0..5c8cfbd 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -12802,19 +12802,14 @@ producer_is_icc (struct dwarf2_cu *cu) /* Called when we find the DIE that starts a structure or union scope (definition) to create a type for the structure or union. Fill in the type's name and general properties; the members will not be - processed until process_structure_scope. + processed until process_structure_scope. A symbol table entry for + the type will also not be done until process_structure_scope (assuming + the type has a name). NOTE: we need to call these functions regardless of whether or not the DIE has a DW_AT_name attribute, since it might be an anonymous structure or union. This gets the type entered into our set of - user defined types. - - However, if the structure is incomplete (an opaque struct/union) - then suppress creating a symbol table entry for it since gdb only - wants to find the one with the complete definition. Note that if - it is complete, we just call new_symbol, which does it's own - checking about whether the struct/union is anonymous or not (and - suppresses creating a symbol table entry itself). */ + user defined types. */ static struct type * read_structure_type (struct die_info *die, struct dwarf2_cu *cu) |