* dwarf2read.c (read_func_scope): Do not complain for
external function if bounds are not found.
This commit is contained in:
parent
27d3a1a248
commit
ae4d0c03d9
2 changed files with 10 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -3904,9 +3904,11 @@ read_func_scope (struct die_info *die, struct dwarf2_cu *cu)
|
|||
/* 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue