diff options
author | Jeff Law <law@redhat.com> | 1997-10-22 19:15:44 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1997-10-22 19:15:44 +0000 |
commit | a259afccd8dfc082966d89d9c969613c1d3cfb19 (patch) | |
tree | d3fc7bbf49529745e014b1949c5c116f8b016567 /gdb/symtab.c | |
parent | ab41527bce44356bde40cd303ad4c204f3ffc572 (diff) | |
download | gdb-a259afccd8dfc082966d89d9c969613c1d3cfb19.zip gdb-a259afccd8dfc082966d89d9c969613c1d3cfb19.tar.gz gdb-a259afccd8dfc082966d89d9c969613c1d3cfb19.tar.bz2 |
More comment fixes to make the code clearer.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 92f6382..c88d1b0 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -1018,7 +1018,12 @@ lookup_block_symbol (block, name, namespace) if (SYMBOL_NAMESPACE (sym) == namespace && SYMBOL_MATCHES_NAME (sym, name)) { - /* Given pc, search thu alias list to find the active symbol. */ + /* If SYM has aliases, then use any alias that is active + at the current PC. If no alias is active at the current + PC, then use the main symbol. + + ?!? Is checking the current pc correct? Is this routine + ever called to look up a symbol from another context? */ if (SYMBOL_ALIASES (sym)) sym = ref_search_val (sym, read_pc ()); |