2003-06-02 David Carlton <carlton@math.stanford.edu>
authorDavid Carlton <carlton@bactrian.org>
Mon, 2 Jun 2003 18:08:16 +0000 (18:08 +0000)
committerDavid Carlton <carlton@bactrian.org>
Mon, 2 Jun 2003 18:08:16 +0000 (18:08 +0000)
* objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
* c-valprint.c (c_val_print): Delete unneeded variable 's'.
* p-valprint.c (pascal_val_print): Ditto.
* ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.

gdb/ChangeLog
gdb/ada-lang.c
gdb/c-valprint.c
gdb/objc-lang.c
gdb/p-valprint.c

index acb71274931013e3dcc21d5b0f164f4a6be3c26b..2d58e685de875ce373ca7a9d79f0ac01d29f69aa 100644 (file)
@@ -1,3 +1,10 @@
+2003-06-02  David Carlton  <carlton@math.stanford.edu>
+
+       * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
+       * c-valprint.c (c_val_print): Delete unneeded variable 's'.
+       * p-valprint.c (pascal_val_print): Ditto.
+       * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
+
 2003-06-02  Richard Henderson  <rth@redhat.com>
 
         * alpha-tdep.c (alpha_push_dummy_call): Use
index 12bda8049cfacb280040f26b47c0cf3497f1f108..c403af2c02d6f69d7b4fa0e5bdcd057a103c545c 100644 (file)
@@ -3181,8 +3181,7 @@ static struct symbol *
 standard_lookup (const char *name, domain_enum domain)
 {
   struct symbol *sym;
-  struct symtab *symtab;
-  sym = lookup_symbol (name, (struct block *) NULL, domain, 0, &symtab);
+  sym = lookup_symbol (name, (struct block *) NULL, domain, 0, NULL);
   return sym;
 }
 
index 848f7ac8adea03c22c18ce078754ca5ba3052171..419b24770b69d54714b860fcdb870804bf8bc97b 100644 (file)
@@ -213,13 +213,12 @@ c_val_print (struct type *type, char *valaddr, int embedded_offset,
                  struct value *vt_val;
                  struct symbol *wsym = (struct symbol *) NULL;
                  struct type *wtype;
-                 struct symtab *s;
                  struct block *block = (struct block *) NULL;
                  int is_this_fld;
 
                  if (msymbol != NULL)
                    wsym = lookup_symbol (DEPRECATED_SYMBOL_NAME (msymbol), block,
-                                         VAR_DOMAIN, &is_this_fld, &s);
+                                         VAR_DOMAIN, &is_this_fld, NULL);
 
                  if (wsym)
                    {
index 47ef9cd09aef57a85871dd629f876b726800830b..25d40ab92896d8db732742a1e0838322d52ec5b2 100644 (file)
@@ -1421,7 +1421,6 @@ char *find_imps (struct symtab *symtab, struct block *block,
 
   if (tmp == NULL) {
     
-    struct symtab *sym_symtab = NULL;
     struct symbol *sym = NULL;
     struct minimal_symbol *msym = NULL;
     
@@ -1431,7 +1430,7 @@ char *find_imps (struct symtab *symtab, struct block *block,
     if (tmp == NULL)
       return NULL;
     
-    sym = lookup_symbol (selector, block, VAR_DOMAIN, 0, &sym_symtab);
+    sym = lookup_symbol (selector, block, VAR_DOMAIN, 0, NULL);
     if (sym != NULL) 
       {
        if (syms)
index ddd508ac0448316537354a783e41945c9c8428b1..4e460ccec261216b5856078d7b096eb0964fa547 100644 (file)
@@ -222,13 +222,12 @@ pascal_val_print (struct type *type, char *valaddr, int embedded_offset,
                  struct value *vt_val;
                  struct symbol *wsym = (struct symbol *) NULL;
                  struct type *wtype;
-                 struct symtab *s;
                  struct block *block = (struct block *) NULL;
                  int is_this_fld;
 
                  if (msymbol != NULL)
                    wsym = lookup_symbol (DEPRECATED_SYMBOL_NAME (msymbol), block,
-                                         VAR_DOMAIN, &is_this_fld, &s);
+                                         VAR_DOMAIN, &is_this_fld, NULL);
 
                  if (wsym)
                    {