* dwarf2read.c (create_debug_types_hash_table): Set objfile on
authorTom Tromey <tromey@redhat.com>
Thu, 22 Jul 2010 15:53:48 +0000 (15:53 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 22 Jul 2010 15:53:48 +0000 (15:53 +0000)
type signature's per-CU data.

gdb/ChangeLog
gdb/dwarf2read.c

index ce5306289e6582176b65644e74458ddf91c5552b..861f5b8743cf87b472194ed6f4d3ef130cadf1a5 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-22  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2read.c (create_debug_types_hash_table): Set objfile on
+       type signature's per-CU data.
+
 2010-07-22  Pedro Alves  <pedro@codesourcery.com>
 
        * NEWS: Mention target reported shared libraries support by
index 93879645d631ef84ba59601ccf2a5175c80ed977..3a24e9ff859fe5468d7d5ccc930eb06d6aa1bf91 100644 (file)
@@ -2678,6 +2678,7 @@ create_debug_types_hash_table (struct objfile *objfile)
       type_sig->signature = signature;
       type_sig->offset = offset;
       type_sig->type_offset = type_offset;
+      type_sig->per_cu.objfile = objfile;
 
       slot = htab_find_slot (types_htab, type_sig, INSERT);
       gdb_assert (slot != NULL);