More comment fixes to make the code clearer.
authorJeff Law <law@redhat.com>
Wed, 22 Oct 1997 19:15:44 +0000 (19:15 +0000)
committerJeff Law <law@redhat.com>
Wed, 22 Oct 1997 19:15:44 +0000 (19:15 +0000)
gdb/symtab.c

index 92f6382169fd44fc7a16f712046c4e2b3c0dc590..c88d1b05627994d813c6671986da66e06eb84f12 100644 (file)
@@ -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 ());
 
This page took 0.028745 seconds and 4 git commands to generate.