+2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
+
+ * dwarf2read.c (read_func_scope): Do not complain for
+ external function if bounds are not found.
+
2010-06-01 Pedro Alves <pedro@codesourcery.com>
* NEWS: Mention gdbserver fast tracepoints support.
/* Ignore functions with missing or invalid low and high pc attributes. */
if (!dwarf2_get_pc_bounds (die, &lowpc, &highpc, cu, NULL))
{
- complaint (&symfile_complaints,
- _("cannot get low and high bounds for subprogram DIE at %d"),
- die->offset);
+ attr = dwarf2_attr (die, DW_AT_external, cu);
+ if (!attr || !DW_UNSND (attr))
+ complaint (&symfile_complaints,
+ _("cannot get low and high bounds for subprogram DIE at %d"),
+ die->offset);
return;
}