This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] dwarf2read.c (setup_type_unit_groups): Add comment.
- From: Doug Evans <devans at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 30 Sep 2015 19:30:23 -0000
- Subject: [binutils-gdb] dwarf2read.c (setup_type_unit_groups): Add comment.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1fd60fc077da09a3ae8f20a8b3f5f88b413c7237
commit 1fd60fc077da09a3ae8f20a8b3f5f88b413c7237
Author: Doug Evans <dje@google.com>
Date: Wed Sep 30 12:29:48 2015 -0700
dwarf2read.c (setup_type_unit_groups): Add comment.
gdb/ChangeLog:
* dwarf2read.c (setup_type_unit_groups): Add comment.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/dwarf2read.c | 5 +++++
2 files changed, 9 insertions(+)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 688aef7..46b36ad 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
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);