aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffgen.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2008-08-14 02:38:22 +0000
committerAlan Modra <amodra@gmail.com>2008-08-14 02:38:22 +0000
commit70df0c05f204148bbdd9476bffce4630a8798777 (patch)
tree078598f80d3af78608f137da70a1490351b4f027 /bfd/coffgen.c
parentf3a2dd1a1d44f63b7194e72a4d932eb69defce30 (diff)
downloadgdb-70df0c05f204148bbdd9476bffce4630a8798777.zip
gdb-70df0c05f204148bbdd9476bffce4630a8798777.tar.gz
gdb-70df0c05f204148bbdd9476bffce4630a8798777.tar.bz2
* coffgen.c (coff_find_nearest_line): Correct cached line index.
Diffstat (limited to 'bfd/coffgen.c')
-rw-r--r--bfd/coffgen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/coffgen.c b/bfd/coffgen.c
index 98b5bbe..17d46a2 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;
}