mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-04 22:15:12 +08:00
Remove ALL_OBJFILE_FILETABS
This removes ALL_OBJFILE_FILETABS, replacing its uses with ranged for loops. gdb/ChangeLog 2019-01-09 Tom Tromey <tom@tromey.com> * symmisc.c (print_objfile_statistics, dump_objfile) (maintenance_print_symbols): Use compunit_filetabs. * source.c (forget_cached_source_info_for_objfile): Use compunit_filetabs. * objfiles.h (ALL_OBJFILE_FILETABS): Remove. (ALL_FILETABS): Use compunit_filetabs. * objfiles.c (objfile_relocate1): Use compunit_filetabs. * coffread.c (coff_symtab_read): Use compunit_filetabs.
This commit is contained in:
@ -788,20 +788,23 @@ objfile_relocate1 (struct objfile *objfile,
|
||||
|
||||
/* OK, get all the symtabs. */
|
||||
{
|
||||
ALL_OBJFILE_FILETABS (objfile, cust, s)
|
||||
{
|
||||
struct linetable *l;
|
||||
for (compunit_symtab *cust : objfile_compunits (objfile))
|
||||
{
|
||||
for (symtab *s : compunit_filetabs (cust))
|
||||
{
|
||||
struct linetable *l;
|
||||
|
||||
/* First the line table. */
|
||||
l = SYMTAB_LINETABLE (s);
|
||||
if (l)
|
||||
{
|
||||
for (int i = 0; i < l->nitems; ++i)
|
||||
l->item[i].pc += ANOFFSET (delta,
|
||||
COMPUNIT_BLOCK_LINE_SECTION
|
||||
(cust));
|
||||
}
|
||||
}
|
||||
/* First the line table. */
|
||||
l = SYMTAB_LINETABLE (s);
|
||||
if (l)
|
||||
{
|
||||
for (int i = 0; i < l->nitems; ++i)
|
||||
l->item[i].pc += ANOFFSET (delta,
|
||||
COMPUNIT_BLOCK_LINE_SECTION
|
||||
(cust));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (compunit_symtab *cust : objfile_compunits (objfile))
|
||||
{
|
||||
|
Reference in New Issue
Block a user