symtab.c (basic_lookup_symbol_nonlocal): Add comment.
authorDoug Evans <xdje42@gmail.com>
Fri, 7 Nov 2014 07:34:28 +0000 (23:34 -0800)
committerDoug Evans <xdje42@gmail.com>
Fri, 7 Nov 2014 07:34:28 +0000 (23:34 -0800)
gdb/ChangeLog:

* symtab.c (basic_lookup_symbol_nonlocal): Add comment.

gdb/ChangeLog
gdb/symtab.c

index 5500c15cd8b44c01943f8c60978fb1392f7d1956..882262d7390fdcb5fe0b5fed45688757e6954a6d 100644 (file)
@@ -1,3 +1,7 @@
+2014-11-06  Doug Evans  <xdje42@gmail.com>
+
+       * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
+
 2014-11-06  Doug Evans  <xdje42@gmail.com>
 
        * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
index 6f483bf3d1b2ce93f389fa2bccc0d9e796590859..e2a1e56f6608d26b25f9d82b2a7876a69dd25328 100644 (file)
@@ -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;
This page took 0.034226 seconds and 4 git commands to generate.