diff options
author | Doug Evans <dje@google.com> | 2015-09-30 12:29:48 -0700 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2015-09-30 12:29:48 -0700 |
commit | 1fd60fc077da09a3ae8f20a8b3f5f88b413c7237 (patch) | |
tree | fa23c930da2d9413d1a17a05bb70c06fb2a72941 /gdb/dwarf2read.c | |
parent | 398e081380a204e3b9fb4eb4da069ccf471f930e (diff) | |
download | gdb-1fd60fc077da09a3ae8f20a8b3f5f88b413c7237.zip gdb-1fd60fc077da09a3ae8f20a8b3f5f88b413c7237.tar.gz gdb-1fd60fc077da09a3ae8f20a8b3f5f88b413c7237.tar.bz2 |
dwarf2read.c (setup_type_unit_groups): Add comment.
gdb/ChangeLog:
* dwarf2read.c (setup_type_unit_groups): Add comment.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 5b12342..ddd4a4c 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -9332,6 +9332,11 @@ setup_type_unit_groups (struct die_info *die, struct dwarf2_cu *cu) { struct compunit_symtab *cust = dwarf2_start_symtab (cu, "", NULL, 0); + /* Note: We don't assign tu_group->compunit_symtab yet because we're + still initializing it, and our caller (a few levels up) + process_full_type_unit still needs to know if this is the first + time. */ + tu_group->num_symtabs = lh->num_file_names; tu_group->symtabs = XNEWVEC (struct symtab *, lh->num_file_names); |