]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* dwarf2.c (comp_unit_find_nearest_line): Check for end of
authorStephane Carrez <stcarrez@nerim.fr>
Sun, 7 Oct 2001 21:36:13 +0000 (21:36 +0000)
committerStephane Carrez <stcarrez@nerim.fr>
Sun, 7 Oct 2001 21:36:13 +0000 (21:36 +0000)
compilation unit.

bfd/ChangeLog
bfd/dwarf2.c

index c9d40d08b27313fbd97eaa3570d77ab7d58a1de0..fcfc6c93e156612d8772f887db90de82bdc97ebe 100644 (file)
@@ -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 
index 4a032732c980714d4ba7766d51fea4d5072c211d..2161846de9532fd9100f33204446563af89e86cf 100644 (file)
@@ -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;