diff options
author | Tom Tromey <tom@tromey.com> | 2023-04-10 10:43:32 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-05-07 12:44:17 -0600 |
commit | 5250cbc85cbbf13221ed508c1b89f1ee0a6ac1ec (patch) | |
tree | 36230d533899f8a7459c129e1691944d82209b99 /gdb/printcmd.c | |
parent | 9ed8433a04bf0430e2da3cd44c18667859782410 (diff) | |
download | gdb-5250cbc85cbbf13221ed508c1b89f1ee0a6ac1ec.zip gdb-5250cbc85cbbf13221ed508c1b89f1ee0a6ac1ec.tar.gz gdb-5250cbc85cbbf13221ed508c1b89f1ee0a6ac1ec.tar.bz2 |
Remove ALL_OBJFILE_OSECTIONS
This replaces ALL_OBJFILE_OSECTIONS with an iterator so that for-each
can be used.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index e903bf4..679a24e 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -1541,7 +1541,6 @@ static void info_symbol_command (const char *arg, int from_tty) { struct minimal_symbol *msymbol; - struct obj_section *osect; CORE_ADDR addr, sect_addr; int matches = 0; unsigned int offset; @@ -1551,7 +1550,7 @@ info_symbol_command (const char *arg, int from_tty) addr = parse_and_eval_address (arg); for (objfile *objfile : current_program_space->objfiles ()) - ALL_OBJFILE_OSECTIONS (objfile, osect) + for (obj_section *osect : objfile->sections ()) { /* Only process each object file once, even if there's a separate debug file. */ |