diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2001-10-06 10:01:09 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2001-10-06 10:01:09 +0000 |
commit | 3f5864e1f47b2678c57a84c619c3b04d63e31e49 (patch) | |
tree | 61a94a0ae48ebe2794027ea264bffa621a9985d4 /bfd | |
parent | aec2f561889089b3539a5c50627d4759e12abfe6 (diff) | |
download | gdb-3f5864e1f47b2678c57a84c619c3b04d63e31e49.zip gdb-3f5864e1f47b2678c57a84c619c3b04d63e31e49.tar.gz gdb-3f5864e1f47b2678c57a84c619c3b04d63e31e49.tar.bz2 |
* dwarf2.c (comp_unit_find_nearest_line): Check for end of
compilation unit.
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 dc4a5d7..b867e71 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-10-06 Alan Modra <amodra@bigpond.net.au> * bfd.c (bfd_assert): Report bfd version. diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 7126360..6edbc0b 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -1551,7 +1551,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; |