From cdef89d01172a24cd4122ed71f781d4099225542 Mon Sep 17 00:00:00 2001 From: David Carlton Date: Mon, 2 Jun 2003 18:08:16 +0000 Subject: 2003-06-02 David Carlton * 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 | 7 +++++++ gdb/ada-lang.c | 3 +-- gdb/c-valprint.c | 3 +-- gdb/objc-lang.c | 3 +-- gdb/p-valprint.c | 3 +-- 5 files changed, 11 insertions(+), 8 deletions(-) (limited to 'gdb') 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 + + * 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 * 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) { -- cgit v1.1