mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-30 00:52:16 +08:00
* coffgen.c (coff_find_nearest_line): Correct cached line index.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2008-08-14 Jaka Močnik <jaka@xlab.si>
|
||||||
|
|
||||||
|
* coffgen.c (coff_find_nearest_line): Correct cached line index.
|
||||||
|
|
||||||
2008-08-12 Alan Modra <amodra@bigpond.net.au>
|
2008-08-12 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* elf32-ppc.c (allocate_dynrelocs): Ignore dyn_relocs when
|
* elf32-ppc.c (allocate_dynrelocs): Ignore dyn_relocs when
|
||||||
|
@ -2145,7 +2145,7 @@ coff_find_nearest_line (bfd *abfd,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Now wander though the raw linenumbers of the section. */
|
/* 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. */
|
want is further down then we can prime the lookup loop. */
|
||||||
sec_data = coff_section_data (abfd, section);
|
sec_data = coff_section_data (abfd, section);
|
||||||
if (sec_data != NULL
|
if (sec_data != NULL
|
||||||
@ -2232,7 +2232,7 @@ coff_find_nearest_line (bfd *abfd,
|
|||||||
if (sec_data != NULL)
|
if (sec_data != NULL)
|
||||||
{
|
{
|
||||||
sec_data->offset = offset;
|
sec_data->offset = offset;
|
||||||
sec_data->i = i;
|
sec_data->i = i - 1;
|
||||||
sec_data->function = *functionname_ptr;
|
sec_data->function = *functionname_ptr;
|
||||||
sec_data->line_base = line_base;
|
sec_data->line_base = line_base;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user