dwarf2read.c (setup_type_unit_groups): Add comment.
authorDoug Evans <dje@google.com>
Wed, 30 Sep 2015 19:29:48 +0000 (12:29 -0700)
committerDoug Evans <dje@google.com>
Wed, 30 Sep 2015 19:29:48 +0000 (12:29 -0700)
gdb/ChangeLog:

* dwarf2read.c (setup_type_unit_groups): Add comment.

gdb/ChangeLog
gdb/dwarf2read.c

index 688aef7270ed73bda64ecee6724cc88da9d1c427..46b36ad25d23dadabacb439f5782bc11fc4f9b7c 100644 (file)
@@ -1,3 +1,7 @@
+2015-09-30  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (setup_type_unit_groups): Add comment.
+
 2015-09-30  Pedro Alves  <palves@redhat.com>
 
        * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
index 5b1234209486cdc617ae57972648d0fd0d62fb5b..ddd4a4c932ee6839ec5cf93b1c54cfcdcbfa5cb2 100644 (file)
@@ -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);