This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/9] symtab.c symbol lookup cleanups
- From: Doug Evans <xdje42 at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Sun, 26 Oct 2014 21:21:57 -0700
- Subject: [PATCH 0/9] symtab.c symbol lookup cleanups
- Authentication-results: sourceware.org; auth=none
Hi.
This patch series takes a step towards cleaning up the symbol lookup
functions in symtab.c.
There are no behavioral changes, except for 7/9, which I'll discuss
in that email.
1/9 Move lookup_block_symbol from symtab.c to block.c.
2/9 Add macro ALL_BLOCK_SYMBOLS_WITH_NAME.
3/9 Rename lookup_symbol_static to lookup_symbol_in_static_block,
and lookup_static_symbol_aux to lookup_static_symbol.
4/9 Rename lookup_symbol_aux_block to lookup_symbol_in_block.
5/9 Rename some "aux" functions.
6/9 symtab.c (basic_lookup_symbol_nonlocal): Add comment.
7/9 Rewrite lookup_static_symbol to use
gdbarch_iterate_over_objfiles_in_search_order.
8/9 Rename lookup_symbol_global to lookup_global_symbol.
9/9 Improve function comment for lookup_global_symbol.