diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-01-21 16:55:49 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-01-21 16:55:49 +0000 |
commit | 113096576766ad92cfa059437ea6d370ceecd0cf (patch) | |
tree | b8ec169c01ccb3d15cc19117b1b4845566a12b9c /gdb/objfiles.h | |
parent | cb1df416fb6d2cc4837a8f81c5f102821c02db93 (diff) | |
download | gdb-113096576766ad92cfa059437ea6d370ceecd0cf.zip gdb-113096576766ad92cfa059437ea6d370ceecd0cf.tar.gz gdb-113096576766ad92cfa059437ea6d370ceecd0cf.tar.bz2 |
* objfiles.h (ALL_PRIMARY_SYMTABS): Define.
* ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
(ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
* cp-support.c (make_symbol_overload_list_qualified): Likewise.
* symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
(basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
(make_symbol_completion_list): Likewise.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r-- | gdb/objfiles.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 6072348..7b3cf07 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -603,6 +603,14 @@ extern void *objfile_data (struct objfile *objfile, ALL_OBJFILES (objfile) \ ALL_OBJFILE_SYMTABS (objfile, s) +/* Traverse all symtabs in all objfiles, skipping included files + (which share a blockvector with their primary symtab). */ + +#define ALL_PRIMARY_SYMTABS(objfile, s) \ + ALL_OBJFILES (objfile) \ + ALL_OBJFILE_SYMTABS (objfile, s) \ + if ((s)->primary) + /* Traverse all psymtabs in all objfiles. */ #define ALL_PSYMTABS(objfile, p) \ |