aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2003-06-02 18:08:16 +0000
committerDavid Carlton <carlton@bactrian.org>2003-06-02 18:08:16 +0000
commitcdef89d01172a24cd4122ed71f781d4099225542 (patch)
treea0078291f7e7bb6e361203167b526d4a9a713b94 /gdb
parentd80dbb52aaf81bbddac1bd4e15ea50aec5555a90 (diff)
downloadgdb-cdef89d01172a24cd4122ed71f781d4099225542.zip
gdb-cdef89d01172a24cd4122ed71f781d4099225542.tar.gz
gdb-cdef89d01172a24cd4122ed71f781d4099225542.tar.bz2
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'.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/ada-lang.c3
-rw-r--r--gdb/c-valprint.c3
-rw-r--r--gdb/objc-lang.c3
-rw-r--r--gdb/p-valprint.c3
5 files changed, 11 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index acb7127..2d58e68 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 12bda80..c403af2 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -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;
}
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c
index 848f7ac..419b247 100644
--- a/gdb/c-valprint.c
+++ b/gdb/c-valprint.c
@@ -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)
{
diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c
index 47ef9cd..25d40ab 100644
--- a/gdb/objc-lang.c
+++ b/gdb/objc-lang.c
@@ -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)
diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c
index ddd508a..4e460cc 100644
--- a/gdb/p-valprint.c
+++ b/gdb/p-valprint.c
@@ -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)
{