diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2008-05-19 15:50:10 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2008-05-19 15:50:10 +0000 |
commit | 2570f2b7e1242480dcf1db929ca99febce976ca0 (patch) | |
tree | fbe097c8ae7e5a68bbd43ecc21438202d8e46eb1 /gdb/symtab.c | |
parent | 21b556f400421068d5d1928b65750a909c2f716e (diff) | |
download | gdb-2570f2b7e1242480dcf1db929ca99febce976ca0.zip gdb-2570f2b7e1242480dcf1db929ca99febce976ca0.tar.gz gdb-2570f2b7e1242480dcf1db929ca99febce976ca0.tar.bz2 |
* symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
(lookup_symbol): Likewise.
* symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
(lookup_symbol): Likewise.
(search_symbols): Update.
* linespec.c (find_methods, collect_methods): Update.
(add_matching_methods, add_constructors): Update.
(decode_compound, decode_dollar, decode_variable): Update.
(lookup_prefix_sym): Update.
(symbol_found): Remove SYM_SYMTAB parameter.
Use SYMBOL_SYMTAB (sym) instead.
* gdbtypes.c (lookup_typename): Update.
(lookup_struct, lookup_union, lookup_enum): Update.
(lookup_template_type): Update.
(check_typedef): Update.
* language.c (lang_bool_type): Update.
* mdebugread.c (parse_procedure): Update.
* mi/mi-cmd-stack.c (list_args_or_locals): Update.
* parse.c (write_dollar_variable): Update.
* printcmd.c (address_info): Update.
* source.c (select_source_symtab): Update.
* stack.c (print_frame_args, print_frame_arg_vars): Update.
* valops.c (find_function_in_inferior): Update.
(value_struct_elt_for_reference): Update.
* value.c (value_static_field, value_fn_field): Update.
* alpha-mdebug-tdep.c (find_proc_desc): Update.
* arm-tdep.c (arm_skip_prologue): Update.
* mt-tdep.c (mt_skip_prologue): Update.
* xstormy16-tdep.c (xstormy16_skip_prologue): Update.
* ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
* ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
(add_defn_to_vec): Likewise.
(ada_add_block_symbols): Likewise.
(lookup_cached_symbol, cache_symbol): Likewise.
(standard_lookup): Update.
(ada_lookup_symbol_list): Update.
* c-valprint.c (c_val_print): Update.
* cp-support.c (cp_lookup_rtti_type): Update.
* jv-lang.c (java_lookup_class, get_java_object_type): Update.
* objc-lang.c (lookup_struct_typedef, find_imps): Update.
* p-valprint.c (pascal_val_print): Update.
* scm-lang.c (scm_lookup_name): Update.
* c-exp.y: Update.
* f-exp.y: Update.
* jv-exp.y: Update.
* m2-exp.y: Update.
* objc-exp.y: Update.
* p-exp.y: Update.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index db0808b..4f19d13 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -1190,8 +1190,7 @@ fixup_psymbol_section (struct partial_symbol *psym, struct objfile *objfile) struct symbol * lookup_symbol_in_language (const char *name, const struct block *block, const domain_enum domain, enum language lang, - int *is_a_field_of_this, - struct symtab **symtab) + int *is_a_field_of_this) { char *demangled_name = NULL; const char *modified_name = NULL; @@ -1243,10 +1242,6 @@ lookup_symbol_in_language (const char *name, const struct block *block, if (needtofreename) xfree (demangled_name); - /* Override the returned symtab with the symbol's specific one. */ - if (returnval != NULL && symtab != NULL) - *symtab = SYMBOL_SYMTAB (returnval); - return returnval; } @@ -1255,12 +1250,11 @@ lookup_symbol_in_language (const char *name, const struct block *block, struct symbol * lookup_symbol (const char *name, const struct block *block, - domain_enum domain, int *is_a_field_of_this, - struct symtab **symtab) + domain_enum domain, int *is_a_field_of_this) { return lookup_symbol_in_language (name, block, domain, current_language->la_language, - is_a_field_of_this, symtab); + is_a_field_of_this); } /* Behave like lookup_symbol except that NAME is the natural name @@ -3172,8 +3166,7 @@ search_symbols (char *regexp, domain_enum kind, int nfiles, char *files[], if (kind == FUNCTIONS_DOMAIN || lookup_symbol (SYMBOL_LINKAGE_NAME (msymbol), (struct block *) NULL, - VAR_DOMAIN, - 0, (struct symtab **) NULL) + VAR_DOMAIN, 0) == NULL) found_misc = 1; } @@ -3259,8 +3252,8 @@ search_symbols (char *regexp, domain_enum kind, int nfiles, char *files[], { /* Variables/Absolutes: Look up by name */ if (lookup_symbol (SYMBOL_LINKAGE_NAME (msymbol), - (struct block *) NULL, VAR_DOMAIN, - 0, (struct symtab **) NULL) == NULL) + (struct block *) NULL, VAR_DOMAIN, 0) + == NULL) { /* match */ psr = (struct symbol_search *) xmalloc (sizeof (struct symbol_search)); |