aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
AgeCommit message (Collapse)AuthorFilesLines
2003-04-29* symtab.c (symbol_find_demangled_name): Check for and demangleAdam Fedor1-5/+19
ObjC symbols. (symbol_init_demangled_name): Init for language_objc as well.
2003-04-142003-04-14 David Carlton <carlton@math.stanford.edu>David Carlton1-12/+53
* symtab.c (symbol_set_names): Add prefix when storing Java names in hash table. Fix for PR java/1039.
2003-04-142003-04-14 David Carlton <carlton@math.stanford.edu>David Carlton1-21/+30
* symtab.c (symbol_set_names): Rename 'name' arg to 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'. * symtab.h: Change 'name' argument in declaration of symbol_set_names to 'linkage_name'. (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
2003-03-042003-03-04 David Carlton <carlton@math.stanford.edu>David Carlton1-11/+24
* symtab.c (lookup_partial_symbol): Add linkage_name argument. (lookup_symbol_aux_psymtabs): Update call to lookup_partial_symbol. (lookup_transparent_type, find_main_psymtab) (make_symbol_overload_list): Ditto.
2003-03-032003-03-03 David Carlton <carlton@math.stanford.edu>David Carlton1-8/+5
* symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from SYMBOL_MATCHES_NAME, add comment. (SYMBOL_MATCHES_NATURAL_NAME): New. * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME. (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto. * symtab.c (lookup_partial_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete unhelpful comment. (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Fix for PR c++/33.
2003-03-032003-03-03 David Carlton <carlton@math.stanford.edu>David Carlton1-4/+8
* symtab.h (SYMBOL_MATCHES_REGEXP): Delete. * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP by regexp matching against SYMBOL_NATURAL_NAME.
2003-02-272003-02-27 David Carlton <carlton@math.stanford.edu>David Carlton1-4/+4
* symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not SYMBOL_PRINT_NAME. (compare_psymbols): Ditto. * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
2003-02-252003-02-25 David Carlton <carlton@math.stanford.edu>David Carlton1-16/+35
* symtab.h (SYMBOL_NATURAL_NAME): New macro. (SYMBOL_LINKAGE_NAME): Ditto. (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and SYMBOL_LINKAGE_NAME. (struct general_symbol_info): Expand comment. (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME. (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME. (SYMBOL_MATCHES_REGEXP): Ditto. * symtab.c (symbol_natural_name): New function. * objfiles.h: Replace all uses of SYMBOL_NAME by DEPRECATED_SYMBOL_NAME. * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto. * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto. * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto. * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto. * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto. * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto. * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto. * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto. * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto. * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto. * ada-exp.y: Ditto. * ada-exp.y: Update copyright. * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto. * cp-valprint.c: Ditto. 2003-02-25 David Carlton <carlton@math.stanford.edu> * generic/gdbtk.h: Replace all instances of SYMBOL_NAME by DEPRECATED_SYMBOL_NAME. * generic/gdbtk-stack.c, generic/gdbtk-cmds.c: Ditto. * generic/gdbtk-stack.c, generic/gdbtk-cmds.c: Update copyright. 2003-02-25 David Carlton <carlton@math.stanford.edu> * mi-cmd-stack.c: Replace all instances of SYMBOL_NAME with DEPRECATED_SYMBOL_NAME. Update copyright.
2003-02-242003-02-24 David Carlton <carlton@math.stanford.edu>David Carlton1-22/+5
* symtab.c (make_symbol_overload_list): Only read in partial symtabs containing a matching partial symbol.
2003-02-242003-02-24 David Carlton <carlton@math.stanford.edu>David Carlton1-4/+5
* symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to do the comparison, not strcmp. * symfile.c (compare_psymbols): Ditto. * defs.h: Declare strcmp_iw_ordered. * utils.c (strcmp_iw_ordered): New function.
2003-02-21 Based on a patch from Daniel Berlin (dberlin@dberlin.org).Daniel Jacobowitz1-1/+2
* symtab.h: Add opaque declarations of struct axs_value and struct agent_expr. (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG. (struct location_funcs): New type. (struct symbol): Add "loc" to aux_value. (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros. * dwarf2read.c: Include "dwarf2expr.h". (dwarf2_symbol_mark_computed): New function. (read_func_scope): Use it. (var_decode_location): New function. (new_symbol): Use it. * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files. * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c. (dwarf2expr_h, dwarf2loc_h): New variables. (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o. (dwarf2expr.o, dwarf2loc.o): New rules. (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h). * buildsym.c (finish_block): Handle LOC_COMPUTED and LOC_COMPUTED_ARG. * findvar.c (symbol_read_needs_frame, read_var_value): Likewise. * m2-exp.y (yylex): Likewise. * printcmd.c (address_info, print_frame_args): Likewise. * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise. * symmisc.c (print_symbol, print_partial_symbols): Likewise. * ada-lang.c (ada_resolve_subexp, symtab_for_sym) (ada_add_block_symbols, fill_in_ada_prototype): Likewise. * symtab.c (lookup_block_symbol): Likewise.
2003-02-21* symtab.h: Remove objc_specific structAdam Fedor1-9/+4
(SYMBOL_OBJC_DEMANGLED_NAME): Remove. * symtab.c (symbol_init_language_specific, symbol_demangled_name): Have language_objc use cplus_specific struct.
2003-02-202003-02-20 David Carlton <carlton@math.stanford.edu>David Carlton1-25/+12
* symtab.c (search_symbols): Revert the search_symbols part of my 2002-12-23 patch. Add comment.
2003-02-202003-02-20 David Carlton <carlton@math.stanford.edu>David Carlton1-10/+10
* symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME; expand comment. * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME. * ada-typeprint.c (ada_typedef_print): Ditto. * ax-gdb.c (gen_var_ref): Ditto. * breakpoint.c (print_one_breakpoint): Ditto. * buildsym.c (finish_block): Ditto. * c-valprint.c (c_val_print): Ditto. * expprint.c (print_subexp): Ditto. * findvar.c (locate_var_value): Ditto. * infcmd.c (jump_command): Ditto. * linespec.c (decode_line_2, decode_compound): Ditto. * maint.c (maintenance_translate_address): Ditto. * objc-lang.c (compare_selectors, compare_classes): Ditto. * printcmd.c (build_address_symbolic, sym_info, print_frame_args): Ditto. * p-valprint.c (pascal_val_print): Ditto. * stabsread.c (define_symbol): Ditto. * stack.c (print_frame, frame_info, print_block_frame_locals) (print_frame_arg_vars, return_command): Ditto. * symfile.c (compare_symbols, compare_psymbols): Ditto. * symmisc.c (print_symbol): Ditto. * symtab.c (lookup_partial_symbol, lookup_block_symbol) (compare_search_syms, print_symbol_info, print_msymbol_info) (rbreak_command): Ditto. * tracepoint.c (tracepoints_info): Ditto. * typeprint.c (typedef_print): Ditto. * valops.c (value_of_variable, hand_function_call): Ditto. * cli/cli-cmds.c (edit_command, list_command): Ditto. * ada-typeprint.c: Update Copyright. * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto. * tracepoint.c, cli/cli-cmds.c: Ditto.
2003-02-202003-02-19 David Carlton <carlton@math.stanford.edu>David Carlton1-25/+1
* Makefile.in (SFILES): Add block.c. (block_h): New. (COMMON_OBS): Add block.o. (block.o): New. (x86-64-tdep.o): Add $(block_h). (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o) (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o) (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o) (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o) (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o) (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o) (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto. * value.h: Add opaque declaration for struct block. * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto. * ada-lang.h: Ditto. * x86-64-tdep.c: #include "block.h" * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto. * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto. * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto. * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto. * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto. * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto. * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto. * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto. * blockframe.c (blockvector_for_pc_sect): Move to "block.c". (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto. * symtab.c (block_function): Ditto. (contained_in): Ditto. * frame.h: Move block_for_pc and block_for_pc_sect declarations to block.h. Add opaque declaration for struct block. * symtab.h: Move block_function and contained_in declarations to block.h. Add opaque declarations for struct block, struct blockvector. (struct block): Move to block.h. (struct blockvector): Ditto. (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK) (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM) (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE) (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS) (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK): Ditto. * block.c: New file. * block.h: New file. 2003-02-19 David Carlton <carlton@math.stanford.edu> * mi-cmd-stack.c: #include "block.h"
2003-02-04 * defs.h (streq): Add prototype.Daniel Jacobowitz1-32/+128
* utils.c (streq): New function. * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME. * mdebugread.c (new_symbol): Likewise. * stabsread.c (define_symbol): Likewise. * coffread.c (process_coff_symbol): Likewise. * dwarfread.c (new_symbol): Likewise. * minsyms.c (prim_record_minimal_symbol_and_info): Use SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language here. (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call SYMBOL_INIT_DEMANGLED_NAME. * objfiles.c: Include "hashtab.h". (allocate_objfile): Call htab_set_functions_ex for the demangled_names_hash. (free_objfile): Call htab_delete for the demangled_names_hash. * objfiles.h (struct htab): Add declaration. (struct objfile): Add demangled_names_hash. * symfile.c: Include "hashtab.h". (reread_symbols): Call htab_delete for the demangled_names_hash. (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting SYMBOL_NAME in the bcache. * symtab.c: Include "hashtab.h". Update comments. (create_demangled_names_hash, symbol_set_names): New functions. (symbol_find_demangled_name): New function, broken out from symbol_init_demangled_names. (symbol_init_demangled_names): Use it. * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses. (SYMBOL_SET_NAMES): New macro. (symbol_set_names): Add prototype.
2003-02-012003-02-01 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-5/+5
* main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS, ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code. (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code. * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro. (define_symbol): Update. * symfile.c (generic_load): Remove references to nindy. * symtab.c: Remove references to nindy. Index: doc/ChangeLog 2003-02-01 Andrew Cagney <ac131313@redhat.com> * gdbint.texinfo (Target Architecture Definition): Delete description of ADDITIONAL_OPTIONS, ADDITIONAL_OPTION_CASES, ADDITIONAL_OPTION_HANDLER, and ADDITIONAL_OPTION_HELP, and BEFORE_MAIN_LOOP_HOOK, and DBX_PARM_SYMBOL_CLASS along with references to nindy and i960. * gdb.texinfo (i960): Delete all references to i960 and nindy.
2003-01-13 * symtab.c (find_pc_sect_line): Don't consider end-of-functionDaniel Jacobowitz1-4/+6
lines.
2003-01-022003-01-02 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-27/+0
* valarith.c (value_binop): Delete obsolete code and comments. * configure.host: Ditto. * buildsym.h (make_blockvector): Ditto. * buildsym.c (make_blockvector): Ditto. * defs.h (enum language): Ditto. (chill_demangle): Ditto. * elfread.c (elf_symtab_read): Ditto. * dwarfread.c (CHILL_PRODUCER): Ditto. (set_cu_language): Ditto. (handle_producer): Ditto. * expprint.c (print_subexp): Ditto. * gdbtypes.c (chill_varying_type): Ditto. * gdbtypes.h (builtin_type_chill_bool): Ditto. (builtin_type_chill_char, builtin_type_chill_long): Ditto. (builtin_type_chill_ulong, builtin_type_chill_real): Ditto. (chill_varying_type): Ditto. * language.h (_LANG_chill): Ditto. * language.c (binop_result_type, integral_type): Ditto. (character_type, string_type, structured_type): Ditto. (lang_bool_type, binop_type_check): Ditto. * stabsread.h (os9k_stabs): Ditto. * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto. (define_symbol, read_type, read_struct_fields): Ditto. (read_array_type, read_enum_type, read_huge_number): Ditto. (read_range_type, start_stabs): Ditto. * symfile.c (init_filename_language_table): Ditto. (add_psymbol_with_dem_name_to_list): Ditto. * symtab.c (symbol_init_language_specific): Ditto. (symbol_init_demangled_name, symbol_demangled_name): Ditto. * symtab.h (struct general_symbol_info): Ditto. (SYMBOL_CHILL_DEMANGLED_NAME): Ditto. * typeprint.c (typedef_print): Ditto. * utils.c (fprintf_symbol_filtered): Ditto. * valops.c (value_cast, search_struct_field, value_slice): Delete obsolete code. (varying_to_slice): Delete function. * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents. (varying_to_slice): Delete declaration. * MAINTAINERS: Update.
2002-12-232002-12-23 David Carlton <carlton@math.stanford.edu>David Carlton1-28/+39
* symtab.c (lookup_symbol_aux): Delete 'force_return' variable. (lookup_symbol_aux_minsyms): Delete 'force_return' argument. (search_symbols): Call lookup_symbol_aux_minsyms to find debugging information associated to a minsym, not lookup_symbol.
2002-12-172002-12-17 David Carlton <carlton@math.stanford.edu>David Carlton1-2/+3
* symtab.c (lookup_partial_symbol): Don't search past the end of the partial symbols.
2002-12-052002-12-05 David Carlton <carlton@math.stanford.edu>David Carlton1-11/+60
* symtab.c (lookup_symbol_aux_local): Add 'static_block' argument. (lookup_symbol_aux): Do the 'field_of_this' check before checking the static block. See PR gdb/804.
2002-12-052002-12-05 David Carlton <carlton@math.stanford.edu>David Carlton1-21/+47
* symtab.c (lookup_symbol_aux_block): New function. (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
2002-12-042002-12-04 David Carlton <carlton@math.stanford.edu>David Carlton1-140/+154
* symtab.c (lookup_symbol_aux): Move minsym code into a separate function. (lookup_symbol_aux_minsyms): New function.
2002-11-062002-11-06 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-40/+0
* symtab.c (methods_info): Delete. It has been ifdeffed out for ages. (symtab_symbol_info): Remove eons old ifdeffed out code. (_initialize_symtab): Remove prehistoric disabled 'info methods' command.
2002-11-052002-11-05 David Carlton <carlton@math.stanford.edu>David Carlton1-124/+193
* symtab.c (lookup_symbol_aux): Move chunks of code into separate functions. (lookup_symbol_aux_local): New function. (lookup_symbol_aux_symtabs): New function. (lookup_symbol_aux_psymtabs): New function.
2002-11-052002-11-05 David Carlton <carlton@math.stanford.edu>David Carlton1-3/+3
* symtab.c (lookup_symbol_aux): In minsym sections, don't use the previous values of 'objfile' and 'block'.
2002-10-282002-10-28 David Carlton <carlton@math.stanford.edu>David Carlton1-88/+0
* symtab.c (find_addr_symbol): Delete. (It was already commented out.) * symtab.h: Delete prototype for find_addr_symbol.
2002-10-242002-10-24 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-1/+12
* symtab.h (INIT_SAL): Delete macro. (init_sal): Export. * symtab.c (init_sal): New function. * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro to init_sal function call. (find_sal_from_funcs_and_line): Ditto. (all_sals_for_line): Ditto. * breakpoint.c (create_internal_breakpoint): Ditto. (create_fork_vfork_event_catchpoint): Ditto. (create_exec_event_catchpoint): Ditto. (parse_breakpoint_sals): Ditto. (watch_command_1): Ditto. (handle_gnu_4_16_catch_command): Ditto. (clear_command): Ditto. * hppa-tdep.c (child_enable_exception_callback): Ditto. * infcmd.c (run_stack_dummy): Ditto. * infrun.c (process_event_stop_test): Ditto. (check_sigtramp2): Ditto. (step_over_function): Ditto. * linespec.c (decode_line_2): Ditto. (decode_line_1): Ditto. * source.c (line_info): Ditto. * symtab.c (find_pc_sect_line): Ditto.
2002-10-232002-10-23 David Carlton <carlton@math.stanford.edu>David Carlton1-18/+0
* symtab.c: Delete cplusplus_hint. Delete prototype for find_template_name_end.
2002-10-232002-10-23 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-0/+17
* symtab.c (symbol_demangled_name): New function. * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by turning most of it into a function. (symbol_demangled_name): Export.
2002-10-232002-10-23 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-0/+27
* symtab.c (symbol_init_language_specific): New function. * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by turning most of it into a function. (symbol_init_language_specific): Export.
2002-09-20 * source.c: Make global variables current_source_symtab andFernando Nasser1-1/+10
current_source_line static. (list_command): Moved to cli/cli-cmds.c. (ambiguous_line_spec): Moved to cli/cli-cmds.c. (get_first_line_listed): New accessor function. (get_lines_to_list): New accessor function. (get_current_source_symtab_and_line): New function. Retrieves the position in the source code that we consider current. (get_current_or_default_source_symtab_and_line): New function. Like the above but attempts to determine a default position if one is not currently defined. (set_current_source_symtab_and_line): New function. Sets the source code position considered current and returns the previously set one. (clear_current_source_symtab_and_line): Reset stored information about a current source line. (_initialize_source): Remove registration for the "list" command and its alias. * source.h: Add declarations for the new functions above. * symtab.h: Remove declarations for the global variables mentioned above. * breakpoint.c (parse_breakpoint_sals): Use accessor functions to obtain current source line. * linespec.c (decode_line_1): Ditto. * macroscope.c (default_macro_scope): Ditto. * scm-lang.c (scm_unpac): Ditto. * stack.c (print_frame_info_base): Ditto. * symfile.c (clear_symtab_users): Ditto. * symtab.c (decode_line_spec): Ditto. * cli/cli-cmds.c (list_command): Moved here from source.c. (ambiguous_line_spec): Moved here from source.c. (_init_cli_cmds): Add definition for "list" and its alias. * Makefile.in: Update dependencies.
2002-08-30* symtab.c (lookup_symbol_aux): In the cases where we find aJim Blandy1-8/+17
minimal symbol of an appropriate name and use its address to select a symtab to read and search, use `name' (as passed to us) as the demangled name when searching the symtab's global and static blocks, not the minsym's name.
2002-08-012002-08-01 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-18/+20
* NEWS: Menion that CHILL has been made obsolete. * gdbtypes.c (chill_varying_type): Make chill references obsolete. * gdbserver/Makefile.in: Ditto. * stabsread.c (read_range_type): Ditto. * gdbtypes.h: Ditto. * language.c (binop_type_check): Ditto. (binop_result_type): Ditto. (integral_type): Ditto. (character_type): Ditto. (string_type): Ditto. (boolean_type): Ditto. (structured_type): Ditto. (lang_bool_type): Ditto. (binop_type_check): Ditto. * language.h (_LANG_chill): Ditto. * dwarfread.c (set_cu_language): Ditto. * dwarfread.c (CHILL_PRODUCER): Ditto. * dwarfread.c (handle_producer): Ditto. * expression.h (enum exp_opcode): Ditto. * eval.c: Ditto for comments. * typeprint.c (typedef_print) [_LANG_chill]: Ditto. * expprint.c (print_subexp): Ditto. (print_subexp): Ditto. * valops.c (value_cast): Ditto. (search_struct_field): Ditto. * value.h (COERCE_VARYING_ARRAY): Ditto. * symfile.c (init_filename_language_table): Ditto. (add_psymbol_with_dem_name_to_list): Ditto. * valarith.c (value_binop): Ditto. (value_neg): Ditto. * valops.c (value_slice): Ditto. * symtab.h (union language_specific): Ditto. (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto. (SYMBOL_DEMANGLED_NAME): Ditto. (SYMBOL_CHILL_DEMANGLED_NAME): Ditto. * defs.h (enum language): Ditto. * symtab.c (got_symtab): Ditto. * utils.c (fprintf_symbol_filtered): Ditto. * ch-typeprint.c: Make file obsolete. * ch-valprint.c: Make file obsolete. * ch-lang.h: Make file obsolete. * ch-exp.c: Make file obsolete. * ch-lang.c: Make file obsolete. * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or CHILL_LIB. (TARGET_FLAGS_TO_PASS): Ditto. (CHILLFLAGS): Obsolete. (CHILL): Obsolete. (CHILL_FOR_TARGET): Obsolete. (CHILL_LIB): Obsolete. (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and ch-valprint.c. (HFILES_NO_SRCDIR): Remove ch-lang.h. (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and ch-lang.o. (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete targets. 2002-08-01 Andrew Cagney <cagney@redhat.com> * stabs.texinfo, gdb.texinfo, gdbint.texinfo: Obsolete references to CHILL. 2002-08-01 Andrew Cagney <cagney@redhat.com> * Makefile.in (TARGET_FLAGS_TO_PASS): Remove CHILLFLAGS, CHILL, CHILL_FOR_TARGET and CHILL_LIB. * configure.in (configdirs): Remove gdb.chill. * configure: Regenerate. * lib/gdb.exp: Obsolete references to chill. * gdb.fortran/types.exp: Ditto. * gdb.fortran/exprs.exp: Ditto.
2002-07-30 * symtab.c (lookup_symbol): Demangle before lowercasing.Daniel Jacobowitz1-18/+18
2002-07-292002-07-29 Andrew Cagney <ac131313@redhat.com>Andrew Cagney1-1/+1
* gdb_obstack.h: New file. * symtab.h: Include "gdb_obstack.h" instead of "obstack.h". (obstack_chunk_alloc, obstack_chunk_free): Delete macros. * objfiles.h: Include "gdb_obstack.h". * Makefile.in (gdb_obstack_h): Define. (symtab_h): Add $(gdb_obstack_h). (objfiles_h): Add $(gdb_obstack_h). * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h". * macrotab.c, cp-valprint.c, dbxread.c: Ditto. * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto. * macroexp.c, p-typeprint.c, stabsread.c: Ditto. * symtab.c, f-typeprint.c, mdebugread.c: Ditto. * p-valprint.c, symmisc.c, typeprint.c: Ditto. * symfile.c, coffread.c, c-typeprint.c: Ditto. * buildsym.c, bcache.c, ada-typeprint.c: Ditto. * Makefile.in (bcache.o): Update dependencies. (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto. (ch-valprint.o, coffread.o, cp-valprint.o): Ditto. (dbxread.o, dstread.o, f-typeprint.o): Ditto. (objfiles.o, p-typeprint.o, p-valprint.o): Ditto. (stabsread.o, symfile.o, symmisc.o): Ditto. (symtab.o, typeprint.o, macroexp.o): Ditto. (macrotab.o, mdebugread.o): Ditto. (f_lang_h, coff_sym_h, coff_symconst_h): Define. (coff_ecoff_h, aout_aout64_h): Define. (aout_stabs_gnu_h, libaout_h): Define.
2002-07-112002-07-11 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-9/+23
Based on patch from Daniel Berlin <dberlin@dberlin.org>. * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME. (finish_block) For non-function blocks, hash the symbol table. For function blocks, mark the symbol table as unhashed. * minsyms.c (msymbol_hash): Return hash value without taking modulus. (msymbol_hash_iw): Likewise. (add_minsym_to_hash_table): Take modulus of msymbol_hash's return value. (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw. (lookup_minimal_symbol): Likewise for both. * symtab.h (struct block): Add `hashtable' flag. Comment the hashtable. (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro. (ALL_BLOCK_SYMBOLS): Update. (BLOCK_SHOULD_SORT): Do not sort hashed blocks. (struct symbol): Add `hash_next' pointer. * symtab.c (lookup_block_symbol): Search using the hash table when possible. (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS. (search_symbols, find_addr_symbol): Likewise. * dstread.c (process_dst_block): Clear hashtable bit for new block. (read_dst_symtab): Likewise. * jv-lang.c (get_java_class_symtab): Likewise. * mdebugread.c: Include "gdb_assert.h". (shrink_block): Assert that the block being modified is not hashed. * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS. * symmisc.c (free_symtab_block): Walk the hash table when freeing symbols. (dump_symtab): Recognize hashed blocks. * printcmd.c (print_frame_args): Assert that function blocks do not have hashed symbol tables. * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS. (fill_in_ada_prototype, debug_print_block): Likewise. (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2002-07-042002-07-04 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-20/+64
* symtab.c (remove_params): New function. (make_symbol_overload_list): Use it instead of cplus_demangle. (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2002-05-12* language.c (local_hex_string_custom): Simplify. Do not dependAndrew Cagney1-5/+5
on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG. * memattr.c (mem_info_command): Replace calls to longest_local_hex_string and longest_local_hex_string_custom. * buildsym.c (make_blockvector): Ditto. * solib.c (info_sharedlibrary_command): Ditto. * tracepoint.c (tracepoints_info): Ditto. * symtab.c (print_msymbol_info): Ditto. * language.c (local_hex_string): Delete. (local_hex_string_custom): Delete. (longest_local_hex_string): Rename to local_hex_string. (longest_local_hex_string_custom): Rename to local_hex_string_custom. * language.h (local_hex_string): Change parameter type to LONGEST. (local_hex_string_custom): Ditto. (longest_local_hex_string): Delete declaration. (longest_local_hex_string_custom): Ditto. * solib.c: Update copyright. * memattr.c: Update copyright.
2002-04-06* symtab.c (lookup_symtab): Remove ``const'' from ``rp''Andrew Cagney1-1/+1
declaration. Fix -Werror.
2002-04-05gdb/ChangeLog:Jim Blandy1-2/+2
* stack.c (get_selected_block): Add new argument `addr_in_block', used to return the exact code address we used to select the block, not just the block. * blockframe.c (get_frame_block, get_current_block): Same. * frame.h (get_frame_block, get_current_block, get_selected_block): Update declarations. * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c, linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed. gdb/mi/ChangeLog: * mi-cmd-stack.c (list_args_or_locals): Pass new arg to get_frame_block. (See entry in gdb/ChangeLog.)
2002-04-05(lookup_symtab): Use the new xfullpath function, in order to be able toJoel Brobecker1-13/+46
match a filename with either the real filename, or the name of any symbolic link to this file. (lookup_partial_symtab): Ditto.
2002-03-27* symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body intoJim Blandy1-0/+77
a function; leave this macro here to invoke that function. (symbol_init_mangled_name): Declaration for that function. * symtab.c (symbol_init_mangled_name): New function.
2002-03-222002-03-22 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-37/+53
* symtab.h (lookup_block_symbol): Add mangled_name argument to prototype. * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol with new mangled_name argument. * linespec.c (decode_line_1): Likewise. * valops (value_of_this): Likewise. * symtab.c (lookup_transparent_type): Likewise. (lookup_symbol_aux): Likewise. Accept new mangled_name argument. (lookup_symbol): If we are given a mangled name, pass it down to lookup_symbol_aux. (lookup_block_symbol): If we are given a mangled name to check against, only return symbols which match it.
2002-02-27 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.Peter Schauer1-1/+4
2002-02-24s/free/xfree/Andrew Cagney1-1/+1
2002-02-22Approved by Jim Blandy (jimb@redhat.com).Fred Fish1-0/+7
2002-02-21 Fred Fish <fnf@redhat.com> * dbxread.c (process_one_symbol): When finding an N_FUN symbol that marks the end of the range of a function, enter a line number entry that has a line number of zero and a PC offset that matches the end of the function. This starts a range of PC's for which no line number information is known. * symtab.c (find_pc_sect_line): If our best fit is in a range of PC's for which no line number info is found (line number is zero) then we didn't find any valid line information. * symtab.h: Document use of zero line number entry.
2002-02-112002-02-10 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-7/+68
* symtab.c (compare_search_syms): New function. (sort_search_symbols): New function. (search_symbols): Sort symbols after searching rather than before. 2002-02-10 Daniel Jacobowitz <drow@mvista.com> * generic/gdbtk-cmds.c (gdb_listfuncs): Don't call BLOCK_SHOULD_SORT. * library/browserwin.itb (BrowserWin::_fill_funcs_combo): Sort the output of gdb_listfuncs.
2002-01-312002-01-30 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-2/+28
* symtab.c (find_pc_sect_psymtab): Do not search psymtabs for data symbols, since we search based on textlow and texthigh. (find_pc_sect_symtab): Likewise.