diff options
author | Alan Modra <amodra@bigpond.net.au> | 2008-08-14 02:38:22 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2008-08-14 02:38:22 +0000 |
commit | d5c98e5c89a80a30a17e2921f3aaaea7ded167fd (patch) | |
tree | ebf75f518f90db157c7163f62efecf44f27296aa /bfd/coffgen.c | |
parent | f7b4ffde3de4bf624679c81d3174d9ed706c9f11 (diff) | |
download | binutils-redhat-d5c98e5c89a80a30a17e2921f3aaaea7ded167fd.tar.gz |
* coffgen.c (coff_find_nearest_line): Correct cached line index.
Diffstat (limited to 'bfd/coffgen.c')
-rw-r--r-- | bfd/coffgen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/coffgen.c b/bfd/coffgen.c index 98b5bbea8a..17d46a2d5b 100644 --- a/bfd/coffgen.c +++ b/bfd/coffgen.c @@ -2145,7 +2145,7 @@ coff_find_nearest_line (bfd *abfd, } /* Now wander though the raw linenumbers of the section. */ - /* If we have been called on this section before, and th. e offset we + /* If we have been called on this section before, and the offset we want is further down then we can prime the lookup loop. */ sec_data = coff_section_data (abfd, section); if (sec_data != NULL @@ -2232,7 +2232,7 @@ coff_find_nearest_line (bfd *abfd, if (sec_data != NULL) { sec_data->offset = offset; - sec_data->i = i; + sec_data->i = i - 1; sec_data->function = *functionname_ptr; sec_data->line_base = line_base; } |