aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2005-02-07 02:51:28 +0000
committerHans-Peter Nilsson <hp@axis.com>2005-02-07 02:51:28 +0000
commitc3864421222b5f12f72cdb671d246e075eb7839e (patch)
treed2faf1966f8003d04df4c2b825d58075efc224ab
parentb80f2c6aabb92ecbbf36c353d2b4f5d022cb3a9a (diff)
downloadgdb-c3864421222b5f12f72cdb671d246e075eb7839e.zip
gdb-c3864421222b5f12f72cdb671d246e075eb7839e.tar.gz
gdb-c3864421222b5f12f72cdb671d246e075eb7839e.tar.bz2
* aoutx.h (NAME(aout,find_nearest_line)): Correct case for N_SO
being the last symbol.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/aoutx.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 033bf57..7648d41 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-07 Hans-Peter Nilsson <hp@axis.com>
+
+ * aoutx.h (NAME(aout,find_nearest_line)): Correct case for N_SO
+ being the last symbol.
+
2005-02-07 Maciej W. Rozycki <macro@mips.com>
* elf32-mips.c (mips_elf_gprel32_reloc): Reject
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index 2171e84..beb63f9 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -2748,7 +2748,7 @@ NAME(aout,find_nearest_line)
/* Look ahead to next symbol to check if that too is an N_SO. */
p++;
if (*p == NULL)
- break;
+ goto done;
q = (aout_symbol_type *) (*p);
if (q->type != (int)N_SO)
goto next;