diff options
author | Alan Modra <amodra@gmail.com> | 2014-11-11 22:42:03 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2014-11-11 22:45:25 +1030 |
commit | 0ac2337434968896a6393fdd8c0624bd2945bbea (patch) | |
tree | f4ba26877e616bea9a7597248f484da76c41af4f /bfd/coffcode.h | |
parent | fcfa62408aec326a54765a6fd8895349fb41eb7c (diff) | |
download | gdb-0ac2337434968896a6393fdd8c0624bd2945bbea.zip gdb-0ac2337434968896a6393fdd8c0624bd2945bbea.tar.gz gdb-0ac2337434968896a6393fdd8c0624bd2945bbea.tar.bz2 |
coff coff
I missed this use of the loop induction variable outside the loop.
PR binutils/17512
* coffcode.h (coff_slurp_line_table): Use updated lineno_count
when building func_table.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r-- | bfd/coffcode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 6bc8014..f10654e 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -4613,7 +4613,7 @@ coff_slurp_line_table (bfd *abfd, asection *asect) alent **p = func_table; unsigned int i; - for (i = 0; i < counter; i++) + for (i = 0; i < asect->lineno_count; i++) if (lineno_cache[i].line_number == 0) *p++ = &lineno_cache[i]; |