aboutsummaryrefslogtreecommitdiff
path: root/gdb/linespec.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-06-04 02:57:28 +0000
committerDoug Evans <dje@google.com>2012-06-04 02:57:28 +0000
commitd790cf0a9cd4ac9c90668788215bb0b7f0095387 (patch)
tree9f0bb4ab0f1b3f82a49dbabada5d66e814c05912 /gdb/linespec.c
parentbb3a4c10194fcd2be8963749de7a6b88b6deb2c1 (diff)
downloadgdb-d790cf0a9cd4ac9c90668788215bb0b7f0095387.zip
gdb-d790cf0a9cd4ac9c90668788215bb0b7f0095387.tar.gz
gdb-d790cf0a9cd4ac9c90668788215bb0b7f0095387.tar.bz2
* objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
(ALL_PRIMARY_SYMTABS): Use it. (ALL_PSPACE_PRIMARY_SYMTABS): Ditto. * dwarf2read.c (dw2_find_symbol_file): Ditto. * linespec.c (iterate_over_all_matching_symtabs): Ditto. * symtab.c (lookup_symbol_aux_objfile): Ditto. (basic_lookup_transparent_type): Ditto.
Diffstat (limited to 'gdb/linespec.c')
-rw-r--r--gdb/linespec.c31
1 files changed, 14 insertions, 17 deletions
diff --git a/gdb/linespec.c b/gdb/linespec.c
index e678dfa..ccafe59 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -987,27 +987,24 @@ iterate_over_all_matching_symtabs (struct linespec_state *state,
ALL_DOMAIN,
&matcher_data);
- ALL_OBJFILE_SYMTABS (objfile, symtab)
+ ALL_OBJFILE_PRIMARY_SYMTABS (objfile, symtab)
{
- if (symtab->primary)
- {
- struct block *block;
+ struct block *block;
- block = BLOCKVECTOR_BLOCK (BLOCKVECTOR (symtab), STATIC_BLOCK);
- LA_ITERATE_OVER_SYMBOLS (block, name, domain, callback, data);
+ block = BLOCKVECTOR_BLOCK (BLOCKVECTOR (symtab), STATIC_BLOCK);
+ LA_ITERATE_OVER_SYMBOLS (block, name, domain, callback, data);
- if (include_inline)
- {
- struct symbol_and_data_callback cad = { callback, data };
- int i;
+ if (include_inline)
+ {
+ struct symbol_and_data_callback cad = { callback, data };
+ int i;
- for (i = FIRST_LOCAL_BLOCK;
- i < BLOCKVECTOR_NBLOCKS (BLOCKVECTOR (symtab)); i++)
- {
- block = BLOCKVECTOR_BLOCK (BLOCKVECTOR (symtab), i);
- LA_ITERATE_OVER_SYMBOLS (block, name, domain,
- iterate_inline_only, &cad);
- }
+ for (i = FIRST_LOCAL_BLOCK;
+ i < BLOCKVECTOR_NBLOCKS (BLOCKVECTOR (symtab)); i++)
+ {
+ block = BLOCKVECTOR_BLOCK (BLOCKVECTOR (symtab), i);
+ LA_ITERATE_OVER_SYMBOLS (block, name, domain,
+ iterate_inline_only, &cad);
}
}
}