diff options
author | Doug Evans <xdje42@gmail.com> | 2014-11-06 23:34:28 -0800 |
---|---|---|
committer | Doug Evans <xdje42@gmail.com> | 2014-11-06 23:34:28 -0800 |
commit | d9060ba60d1523c87e44eaeb7706d168089936a3 (patch) | |
tree | 94ee97ca5148a547d5d36e8949963bed467aba6c /gdb/symtab.c | |
parent | 74016e1224f211df4652f8974376ba23e58f507e (diff) | |
download | gdb-d9060ba60d1523c87e44eaeb7706d168089936a3.zip gdb-d9060ba60d1523c87e44eaeb7706d168089936a3.tar.gz gdb-d9060ba60d1523c87e44eaeb7706d168089936a3.tar.bz2 |
symtab.c (basic_lookup_symbol_nonlocal): Add comment.
gdb/ChangeLog:
* symtab.c (basic_lookup_symbol_nonlocal): Add comment.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 6f483bf..e2a1e56 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -1792,6 +1792,10 @@ basic_lookup_symbol_nonlocal (const char *name, than that one, so I don't think we should worry about that for now. */ + /* NOTE: dje/2014-10-26: The lookup in all objfiles search could skip + the current objfile. Searching the current objfile first is useful + for both matching user expectations as well as performance. */ + sym = lookup_symbol_in_static_block (name, block, domain); if (sym != NULL) return sym; |