diff options
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/dwarf2.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c9d40d08b27..fcfc6c93e15 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2001-10-06 Stephane Carrez <Stephane.Carrez@worldnet.fr> + + * dwarf2.c (comp_unit_find_nearest_line): Check for end of + compilation unit. + 2001-08-29 Joel Sherrill <joel@OARcorp.com> * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 4a032732c98..2161846de95 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -1431,7 +1431,8 @@ comp_unit_find_nearest_line (unit, addr, return false; } - if (! scan_unit_for_functions (unit)) + if (unit->first_child_die_ptr < unit->end_ptr + && ! scan_unit_for_functions (unit)) { unit->error = 1; return false; |