* dwarf2read.c (lookup_signatured_type): Remove complaint about
authorDoug Evans <dje@google.com>
Fri, 29 Mar 2013 16:38:52 +0000 (16:38 +0000)
committerDoug Evans <dje@google.com>
Fri, 29 Mar 2013 16:38:52 +0000 (16:38 +0000)
missing .debug_types section.

gdb/ChangeLog
gdb/dwarf2read.c

index 58251edd43985f5360ca6190fc2cdd2636e20ada..16236b3dc748010796ac64bcf78cf4fd395a1158 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-29  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (lookup_signatured_type): Remove complaint about
+       missing .debug_types section.
+
 2013-03-29  Yao Qi  <yao@codesourcery.com>
 
        * corelow.c: Include "completer.h".
index 70c509340c65c54a8eb9a7bc99a0a8536bc677c5..ae5c2ad36a9c028144228fc3287428fa3b39b27c 100644 (file)
@@ -4398,7 +4398,8 @@ create_all_type_units (struct objfile *objfile)
 }
 
 /* Lookup a signature based type for DW_FORM_ref_sig8.
-   Returns NULL if signature SIG is not present in the table.  */
+   Returns NULL if signature SIG is not present in the table.
+   It is up to the caller to complain about this.  */
 
 static struct signatured_type *
 lookup_signatured_type (ULONGEST sig)
@@ -4406,12 +4407,7 @@ lookup_signatured_type (ULONGEST sig)
   struct signatured_type find_entry, *entry;
 
   if (dwarf2_per_objfile->signatured_types == NULL)
-    {
-      complaint (&symfile_complaints,
-                _("missing `.debug_types' section for DW_FORM_ref_sig8 die"));
-      return NULL;
-    }
-
+    return NULL;
   find_entry.signature = sig;
   entry = htab_find (dwarf2_per_objfile->signatured_types, &find_entry);
   return entry;