summaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-07-24 15:45:32 +0000
committerDoug Evans <dje@google.com>2013-07-24 15:45:32 +0000
commit6656a72dcb6011e9110658f1da19678335aa4a60 (patch)
treed8f9d60b36e6cecacdd4cfd6301ea38e0083abe3 /gdb/dwarf2read.c
parent7fa9fcb6db636f393bcef5ed9f14559d3a8354f2 (diff)
downloadbinutils-gdb-6656a72dcb6011e9110658f1da19678335aa4a60.tar.gz
* dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
a warning.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 70ab302fb31..04993c2e5f3 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -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;
}