aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-07-09 04:11:19 +0000
committerIan Lance Taylor <ian@airs.com>1994-07-09 04:11:19 +0000
commit64d527f761faf2a653c0fc1f59fbc937f7459fc2 (patch)
treec126b9818e88af990a743f301b68e928570be583 /gas
parent6f15d409d0d101887a5b16d1967b5008af0d92c8 (diff)
downloadgdb-64d527f761faf2a653c0fc1f59fbc937f7459fc2.zip
gdb-64d527f761faf2a653c0fc1f59fbc937f7459fc2.tar.gz
gdb-64d527f761faf2a653c0fc1f59fbc937f7459fc2.tar.bz2
* ecoff.c (ecoff_build_lineno): Handle count correctly for last
line number.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/ecoff.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index b0e3417..5bb1dd0 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+Sat Jul 9 00:05:12 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
+
+ * ecoff.c (ecoff_build_lineno): Handle count correctly for last
+ line number.
+
Fri Jul 8 15:22:07 1994 Steve Chamberlain (sac@jonny.cygnus.com)
* (process_pseudo_op): Pass right are do do_aif.
diff --git a/gas/ecoff.c b/gas/ecoff.c
index e52bf43..edd22f0 100644
--- a/gas/ecoff.c
+++ b/gas/ecoff.c
@@ -3600,7 +3600,11 @@ ecoff_build_lineno (backend, buf, bufend, offset, linecntptr)
(in words). Do this first, so that we can skip ahead to the
next useful line number entry. */
if (l->next == (lineno_list_t *) NULL)
- count = 0;
+ {
+ /* We want a count of zero, but it will be decremented
+ before it is used. */
+ count = 1;
+ }
else
{
count = ((l->next->frag->fr_address + l->next->paddr