* dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
authorDoug Evans <dje@google.com>
Wed, 24 Jul 2013 15:45:32 +0000 (15:45 +0000)
committerDoug Evans <dje@google.com>
Wed, 24 Jul 2013 15:45:32 +0000 (15:45 +0000)
a warning.

gdb/ChangeLog
gdb/dwarf2read.c

index a5739d62e0e14df776b2dc1d0e6b577815f524f0..70621e4257f55a32f1213e170c01b2b4d93ec6e5 100644 (file)
@@ -1,3 +1,8 @@
+2013-07-24  Doug Evans  <dje@google.com>
+
+       * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
+       a warning.
+
 2013-07-23  Yao Qi  <yao@codesourcery.com>
 
        * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
index 70ab302fb312da0f337cc108fc75e0c5d6fbd4a6..04993c2e5f3791e21971dee4352fc6fcd6f23a3a 100644 (file)
@@ -9783,12 +9783,13 @@ lookup_dwo_cutu (struct dwarf2_per_cu_data *this_unit,
                          kind, dwo_name, hex_string (signature));
     }
 
-  complaint (&symfile_complaints,
-            _("Could not find DWO %s %s(%s) referenced by %s at offset 0x%x"
-              " [in module %s]"),
-            kind, dwo_name, hex_string (signature),
-            this_unit->is_debug_types ? "TU" : "CU",
-            this_unit->offset.sect_off, objfile->name);
+  /* This is a warning and not a complaint because it can be caused by
+     pilot error (e.g., user accidentally deleting the DWO).  */
+  warning (_("Could not find DWO %s %s(%s) referenced by %s at offset 0x%x"
+            " [in module %s]"),
+          kind, dwo_name, hex_string (signature),
+          this_unit->is_debug_types ? "TU" : "CU",
+          this_unit->offset.sect_off, objfile->name);
   return NULL;
 }