2003-05-19 David Carlton <carlton@bactrian.org>
authorDavid Carlton <carlton@bactrian.org>
Tue, 20 May 2003 01:12:47 +0000 (01:12 +0000)
committerDavid Carlton <carlton@bactrian.org>
Tue, 20 May 2003 01:12:47 +0000 (01:12 +0000)
* symtab.c (lookup_symbol_aux): Delete #if 0 hunk.

gdb/ChangeLog
gdb/symtab.c

index f0eb4345262a6a07a72e38e15b3ee3ab4448c0d8..b12cc7b58e47e5317c0ef5f26602667dc300f433 100644 (file)
@@ -1,3 +1,7 @@
+2003-05-19  David Carlton  <carlton@bactrian.org>
+
+       * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
+
 2003-05-19  Michal Ludvig  <mludvig@suse.cz>
 
        * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
index 06f813b6687e8f3c94a981b1621eb5ab1c9090fe..9b01d45f7bb1a0d7a2bc47a11adb51046ded4246 100644 (file)
@@ -968,52 +968,6 @@ lookup_symbol_aux (const char *name, const char *linkage_name,
   if (sym != NULL)
     return sym;
 
-#if 0
-  /* NOTE: carlton/2002-11-05: At the time that this code was
-     #ifdeffed out, the value of 'block' was always NULL at this
-     point, hence the bemused comments below.  */
-
-  /* FIXME: this code is never executed--block is always NULL at this
-     point.  What is it trying to do, anyway?  We already should have
-     checked the STATIC_BLOCK above (it is the superblock of top-level
-     blocks).  Why is VAR_DOMAIN special-cased?  */
-  /* Don't need to mess with the psymtabs; if we have a block,
-     that file is read in.  If we don't, then we deal later with
-     all the psymtab stuff that needs checking.  */
-  /* Note (RT): The following never-executed code looks unnecessary to me also.
-   * If we change the code to use the original (passed-in)
-   * value of 'block', we could cause it to execute, but then what
-   * would it do? The STATIC_BLOCK of the symtab containing the passed-in
-   * 'block' was already searched by the above code. And the STATIC_BLOCK's
-   * of *other* symtabs (those files not containing 'block' lexically)
-   * should not contain 'block' address-wise. So we wouldn't expect this
-   * code to find any 'sym''s that were not found above. I vote for 
-   * deleting the following paragraph of code.
-   */
-  if (domain == VAR_DOMAIN && block != NULL)
-    {
-      struct block *b;
-      /* Find the right symtab.  */
-      ALL_SYMTABS (objfile, s)
-      {
-       bv = BLOCKVECTOR (s);
-       b = BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK);
-       if (BLOCK_START (b) <= BLOCK_START (block)
-           && BLOCK_END (b) > BLOCK_START (block))
-         {
-           sym = lookup_block_symbol (b, name, linkage_name, VAR_DOMAIN);
-           if (sym)
-             {
-               block_found = b;
-               if (symtab != NULL)
-                 *symtab = s;
-               return fixup_symbol_section (sym, objfile);
-             }
-         }
-      }
-    }
-#endif /* 0 */
-
   /* C++/Java/Objective-C: If requested to do so by the caller, 
      check to see if NAME is a field of `this'. */
   if (is_a_field_of_this)
This page took 0.028544 seconds and 4 git commands to generate.