summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 2004-01-26 David Carlton <carlton@kealia.com>cvs/carlton_dictionary-branchcarlton_dictionary-branchDavid Carlton2004-01-26466-59720/+71776
| | | | * Merge with mainline; tag is carlton_dictionary-20040126-merge.
* 2003-12-15 David Carlton <carlton@kealia.com>David Carlton2003-12-16443-13577/+36059
| | | | | | | * Merge with mainline; tag is carlton_dictionary-20031215-merge. * cp-support.c (class_name_from_physname): Add DMGL_PARAMS to call to cplus_demangle. (method_name_from_physname): Ditto.
* Fix comment in last commit.David Carlton2003-12-151-4/+6
|
* 2003-12-15 David Carlton <carlton@kealia.com>David Carlton2003-12-152-47/+75
| | | | | | * dwarf2read.c (get_scope_pc_bounds): New. (psymtab_to_symtab_1): Use get_scope_pc_bounds. (read_file_scope): Ditto.
* 2003-11-11 David Carlton <carlton@kealia.com>David Carlton2003-11-122-9/+17
| | | | | | * gdb.cp/namespace.exp: KFAIL various tests with respect to PR gdb/1448. Change existing setup_kfails to refer to gdb/XXX instead of c++/XXX.
* 2003-11-11 David Carlton <carlton@kealia.com>David Carlton2003-11-126-53/+72
| | | | | | | | | | | | | | | * valops.c: Tweak comments to match proposed patch. (value_aggregate_elt): Use internal_error instead of error. * dwarf2read.c: Tweak comments to match proposed patch. (new_symbol): Use SYMBOL_LINKAGE_NAME or SYMBOL_NATURAL_NAME instead of DEPRECATED_SYMBOL_NAME. * cp-namespace.c: Tweak comments to match proposed patch. (cp_set_block_scope): Remove #if 0. (cp_lookup_nested_type): Use internal_error instead of error. 2003-11-11 David Carlton <carlton@kealia.com> * gdb.cp/namespace.exp: Remove doubled comment.
* 2003-11-11 David Carlton <carlton@kealia.com>David Carlton2003-11-11606-29176/+24651
| | | | * Merge with mainline; tag is carlton-dictionary-20031111-merge.
* 2003-09-30 David Carlton <carlton@kealia.com>David Carlton2003-09-308-163/+139
| | | | | | | | | | | | | | | | | * Makefile.in (c-exp.tab.o): Depend on cp_support_h. * c-exp.y: Include c-exp.y. Update comments, replace lookup_nested_type by cp_lookup_nested_type. (yylex): Update comments, remove #if 0 block. * cp-namespace.c (cp_lookup_nested_type): Move here from symtab.c; rename from lookup_nested_type. * cp-support.h: Add cp_lookup_nested_type declaration. * dwarf2read.c (read_die_and_children): Update comment. (read_die_and_siblings): Update comment, move declaration of 'die'. (read_full_die): Update comment, tweak formatting. * symtab.c (lookup_nested_type): Move to cp-namespace.c, rename to cp_lookup_nested_type. * symtab.h: Delete declaration of lookup_nested_type.
* 2003-09-19 David Carlton <carlton@kealia.com>David Carlton2003-09-2016-115/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * expression.h (enum exp_opcode): Revert to mainline's OP_FUNCALL, OP_SCOPE. * ada-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto. * jv-exp.y (push_qualified_expression_name): Ditto. * ada-lang.c (ada_resolve_subexp, replace_operator_with_call) (ada_evaluate_subexp): Ditto. * eval.c (evaluate_subexp_standard): Ditto. * expprint.c (print_subexp, dump_subexp): Ditto. * parse.c (length_of_subexp, prefixify_subexp): Ditto. * c-exp.y: Ditto, and add comment. * cp-support.c (make_symbol_overload_list): Delete 'block' argument; change calls to make_symbol_overload_list_using appropriately. (make_symbol_overload_list_using): Delete 'block' argument; replace it by get_selected_block (0). * cp-support.h: Delete 'block' argument from make_symbol_overload_list. * valops.c (find_overload_match): Delete 'block' argument, and update calls using it. (find_oload_champ_namespace, find_oload_champ_namespace_loop) (value_aggregate_elt, value_struct_elt_for_reference) (value_namespace_elt): Ditto. (value_maybe_namespace_elt): Delete 'block' argument, and use get_selected_block (0) instead. * value.h: Delete 'block' argument from value_struct_elt, value_find_oload.
* 2003-09-17 David Carlton <carlton@kealia.com>David Carlton2003-09-17576-22041/+34890
| | | | * Merge with mainline; tag is carlton_dictionary-20030917-merge.
* 2003-09-12 David Carlton <carlton@kealia.com>David Carlton2003-09-132-1/+6
| | | | | * carlton_runnamespace (TESTS): Fix typo in gdb.c++->gdb.cp transition.
* 2003-08-22 Michael Chastain <mec@shout.net>Michael Chastain2003-08-302-80/+8
| | | | | | * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*. Add lines for files in gdb/testsuite/gdb.cp/* that are still not 8.3 unique.
* 2003-08-22 Michael Chastain <mec@shout.net>Michael Chastain2003-08-3080-49/+71
| | | | | | | | | | | * gdb.cp: New directory. * gdb.cp/*: Copy from gdb.c++/*. * gdb.c++/*: Remove. * Makefile.in: Change gdb.c++ to gdb.cp. * configure.in: Ditto. * carlton_runnamespace: Ditto. * carlton_runtest: Ditto. * configure: Regnerate.
* 2003-08-05 David Carlton <carlton@kealia.com>David Carlton2003-08-05378-21755/+62661
| | | | | | | * configure.in (build_warnings): Delete -Wformat-nonliteral. * configure (build_warnings): Ditto. * Merge with mainline; tag is carlton_dictionary-20030805-merge.
* 2003-06-27 David Carlton <carlton@kealia.com>David Carlton2003-06-2710-233/+235
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dwarf2read.c (add_partial_symbol): Add 'objfile' argument to call to cp_check_possible_namespace_symbols. (add_partial_namespace): Add partial symbol instead of calling cp_check_namespace_symbol. (read_namespace): Add symbol associated to namespace. (new_symbol): Handle DW_TAG_namespace. * cp-support.h: Delete declaration of cp_check_namespace_symbol; add 'objfile' argument to declaration of cp_check_possible_namespace_symbols. * cp-namespace.c: Delete variables namespace_block, possible_namespace_block, namespace_objfile. Delete functions get_namespace_block, get_namespace_objfile, cp_check_namespace_symbol, check_namespace_symbol_block, lookup_namespace_symbol. (lookup_symbol_file): Delete call to lookup_namespace_symbol; tweak call to lookup_possible_namespace_symbol. (initialize_namespace_symtab): Rename from initialize_namespace_blocks; add 'objfile' argument, don't do anything special with global block. (get_possible_namespace_block): Add 'objfile' argument. (check_possible_namespace_symbols_loop) (cp_check_possible_namespace_symbols): Ditto. (free_namespace_block): Rename from free_namespace_blocks; don't do anything special with global block. (check_one_possible_namespace_symbol): Add 'objfile' argument, and inline call to check_namespace_symbol_block. (lookup_possible_namespace_symbol): Add 'symtab' argument, loop over all objfiles. (maintenance_cplus_namespace): Only have possible symbols; add loop over objfiles. (_initialize_cp_namespace): Tweak doc string. * objfiles.h: Add opaque declaration of struct symtab. (struct objfile): Add cp_namespace_symtab member. * objfiles.c (allocate_objfile): Set objfile->cp_namespace_symtab. 2003-06-27 David Carlton <carlton@kealia.com> * carlton_runtest (FASTTESTS): Add gdb.c++/pr-1210.exp. * gdb.c++/namespace.exp: Delete test for maint cp namespace. * gdb.c++/maint.exp (test_help): Tweak output for 'help maint cp namespace'. (test_namespace): Tweak comment.
* 2003-06-27 David Carlton <carlton@kealia.com>David Carlton2003-06-27656-27533/+60642
| | | | * Merge with mainline; tag is carlton_dictionary-20030627-merge.
* 2003-06-16 David Carlton <carlton@kealia.com>David Carlton2003-06-1612-126/+191
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * symfile.h: Change formatting. * block.c (allocate_block): Rephrase comment. * block.h (BLOCK_GCC_COMPILED): Move definition. * cp-namespace.c: Include command.h instead of gdbcmd.h. Update comments, reorder functions. (lookup_symbol_file): Set symtab when looking for namespace symbols. Update call to lookup_possible_namespace_symbol. (initialize_namespace_blocks): Change comment. (get_namespace_objfile): Change objfile name. (cp_check_namespace_symbol): Extract body into check_namespace_symbol_block. (check_namespace_symbol_block): New. (lookup_namespace_symbol): Make static, rename from cp_lookup_symbol. (check_possible_namespace_symbols_loop): Update comment. (check_one_possible_namespace_symbol): Call check_namespace_symbol_block. (lookup_possible_namespace_symbol): Make static; rename from cp_lookup_possible_namespace_symbol. * cp-support.h: Update declarations. * Makefile.in (c-typeprint.o): Don't depend on gdb_assert_h. (cp-namespace.o): Depend on command_h, not gdbcmd_h. * c-typeprint.c: Don't include gdb_assert.h. (c_type_print_base): Delete assertion. Use TYPE_TAG_NAME. * dwarf2read.c: Delete double include of cp-support.h. (add_partial_symbol): Look at psym for static variables. (add_partial_namespace): Update call to cp_check_namespace_symbol. (locate_pdi_sibling): Update comment. 2003-06-16 David Carlton <carlton@kealia.com> * gdb.c++/namespace.exp: Add 'maint cp namespace' test. * gdb.c++/maint.exp (test_namespace): Change comment.
* 2003-06-12 David Carlton <carlton@kealia.com>David Carlton2003-06-122-9/+54
| | | | | | | * dwarf2read.c (die_specification): New. (determine_prefix): Fix memory management. (read_structure_scope): Set prefix correctly if getting type via specification.
* 2003-05-28 David Carlton <carlton@bactrian.org>David Carlton2003-05-292-0/+10
| | | | | * dwarf2read.c (add_partial_structure): When looking for a subprogram child, go sibling by sibling.
* 2003-05-28 David Carlton <carlton@bactrian.org>David Carlton2003-05-282-2/+16
| | | | | * dwarf2read.c (determine_prefix): Handle anonymous classes/structures.
* 2003-05-23 David Carlton <carlton@bactrian.org>David Carlton2003-05-236-8/+98
| | | | | | | | | | | | | | * Makefile.in (cp-namespace.o): Depend on frame_h. * cp-support.h: Declare lookup_transparent_type_namespace, lookup_transparent_type_namespace_loop. * cp-namespace.c: Include frame.h. (lookup_transparent_type_namespace): New. (lookup_transparent_type_namespace_loop): New. * symtab.h: Declare lookup_transparent_type_aux. * symtab.c (lookup_transparent_type): Add FIXME, fork off code into lookup_transparent_type_aux, do backup strategy of trying to look in namespaces. (lookup_transparent_type_aux): New.
* 2003-05-23 David Carlton <carlton@bactrian.org>David Carlton2003-05-23344-8095/+14018
| | | | * Merge with mainline; tag is carlton_dictionary-20030523-merge.
* 2003-05-16 David Carlton <carlton@bactrian.org>David Carlton2003-05-164-122/+277
| | | | | | | | | | | | | | | | | | | | | | | | | | | * dwarf2read.c (read_comp_unit): Separate code out into read_die_and_children and read_die_and_siblings. (read_die_and_children): New. (read_die_and_siblings): New. (read_full_die): Add HAS_CHILDREN argument. struct die_info: Delete HAS_CHILDREN, NEXT members; add CHILD, SIBLING, PARENT members. (psymtab_to_symtab_1): Use new members of struct die_info. (process_die, read_file_scope, read_func_scope) (read_lexical_block_scope, read_structure_scope, read_enumeration) (read_array_type, read_common_block, read_namespace) (read_subroutine_type, read_die_and_children, free_die_list) (dump_die, dump_die_list): Ditto. (read_namespace): Separate code out into namespace_name. (namespace_name): New. (typename_concat): New. (determine_prefix): New. (read_type_die): Set prefix appropriately. (class_name): New. 2003-05-16 David Carlton <carlton@bactrian.org> * gdb.c++/rtti.exp: Convert the gdb/488 kfail into a fail, and delete the <.*BaseN> branches.
* 2003-05-16 David Carlton <carlton@bactrian.org>David Carlton2003-05-165-11/+36
| | | | | | | | | * carlton_runnamespace: Run gdb.c++/rtti.exp, too. * carlton_runtest (FASTTESTS): Add gdb.c++/breakpoint.exp and gdb.c++/rtti.exp. * gdb.c++/breakpoint.exp (test_breakpoint): Run to main for every breakpoint. * gdb.c++/rtti.exp: Add more KFAIL branches.
* 2003-05-09 David Carlton <carlton@bactrian.org>David Carlton2003-05-096-41/+165
| | | | | | | | | | | | * linespec.c (examine_compound_token): Handled classes nested within classes, not just classes nested within namespaces. 2003-05-09 David Carlton <carlton@bactrian.org> * gdb.c++/breakpoint.cc: New. * gdb.c++/breakpoint.exp: New. * gdb.c++/namespace.exp: Update "print C::D::cd" for current output.
* 2003-05-07 David Carlton <carlton@bactrian.org>David Carlton2003-05-087-21/+107
| | | | | | | | | | | | | | | | | | | * valops.c (value_aggregate_elt): Add 'noside' argument. (value_struct_elt_for_reference): Add 'block', 'noside' arguments. Call value_maybe_namespace_elt. (value_namespace_elt): Add 'noside' argument. Break out code into value_maybe_namespace_elt. (value_maybe_namespace_elt): New. Handle types. * value.h: Update declaration for value_aggregate_elt. * eval.c (evaluate_subexp_standard): Pass 'noside' to value_aggregate_elt. * c-exp.y: Added 'qualified_type'. (yylex): Comment out nested type stuff. 2003-05-07 David Carlton <carlton@bactrian.org> * gdb.c++/namespace.exp: Update messages to match new parser changes.
* 2003-05-02 David Carlton <carlton@bactrian.org>David Carlton2003-05-023-12/+11
| | | | | | | | | * minsyms.c: Delete declarations for lookup_minimal_symbol_linkage and lookup_minimal_symbol_natural. * linespec.c (decode_variable): Call lookup_minimal_symbol_linkage_or_natural instead of lookup_minimal_symbol. (decode_dollar): Ditto.
* 2003-05-02 David Carlton <carlton@bactrian.org>David Carlton2003-05-027-0/+278
| | | | | | | | | | | * gdb.c++/rtti.h: New. * gdb.c++/rtti2.cc: New. * gdb.c++/rtti1.cc: New. * gdb.c++/rtti.exp: New. 2003-05-02 David Carlton <carlton@bactrian.org> * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti files.
* 2003-04-30 David Carlton <carlton@bactrian.org>David Carlton2003-05-01179-4751/+6858
| | | | | | | | | | | | | | | | | | | | * cp-namespace.c (get_namespace_objfile): Copy the namespace objfile's name. * block.h (ALL_BLOCK_SYMBOLS): Move here from dictionary.h. * dictionary.c: Sync up with mainline version I just posted. Specifically, update some commments, and: (dict_create_hashed): Fiddle with nsyms updating. (dict_create_linear): Ditto. (dict_lookup): Delete. (iterator_next_hashed): Delete FIXME comment. (iter_name_first_hashed): Replace 'sym' by 'sym != NULL'. (iter_name_next_hashed): Replate 'next' by 'next != NULL'. * dictionary.h: Sync up with mainline version I just posted: add inclusion guards, delete declaration of dict_lookup, delete ALL_BLOCK_SYMBOLs. * Merge with mainline; tag is carlton_dictionary-20030430-merge.
* 2003-04-30 David Carlton <carlton@bactrian.org>David Carlton2003-04-307-311/+361
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (cp-namespace.o): Update dependencies. (cp-support.o): Ditto. * cp-support.h: Declare maint_cplus_cmd_list. * cp-namespace.c: Move variables namespace_block, possible_namespace_block, namespace_objfile here from cp-support.c. Move functions initialize_namespace_blocks, get_namespace_block, get_possible_namespace_block, free_namespace_blocks, check_one_possible_namespace_symbol, check_possible_namespace_symbols_loop, maintenance_print_namespace here from cp-support.c. Include objfiles.h, gdbtypes.h, dictionary.h, gdbcmd.h. * cp-namespace.c (_initialize_cp_namespace): New. (maintenance_cplus_namespace): Rename from maintenance_print_namespace. * cp-support.c (cp_find_first_component): Fix typo in comment. (_initialize_cp_support): Don't add 'maint print namespace'. Make maint_cplus_cmd_list extern. Prune includes. 2003-04-30 David Carlton <carlton@bactrian.org> * gdb.c++/maint.exp (test_help): Refactor, and add test for maint cp namespace. (test_namespace): New.
* 2003-04-18 David Carlton <carlton@bactrian.org>David Carlton2003-04-186-45/+81
| | | | | | | | | | | | | * mdebugread.c (parse_symbol): Move up declaration of 'iter'. * dwarf2read.c (add_partial_namespace): Move up declaration of 'full_name'. * cp-support.c (cp_find_first_component): Accept 'operator' in more locations. 2003-04-18 David Carlton <carlton@bactrian.org> * gdb.c++/maint.exp (test_first_component): Add tests for 'operator' in more locations.
* 2003-04-16 David Carlton <carlton@bactrian.org>David Carlton2003-04-16509-24292/+56813
| | | | * Merge with mainline; tag is carlton_dictionary-20030416-merge.
* 2003-03-10 David Carlton <carlton@math.stanford.edu>David Carlton2003-03-113-15/+40
| | | | | | * buildsym.c (scan_for_anonymous_namespaces): Allow "{anonymous}". * cp-support.c (cp_is_anonymous): Scan for "{anonymous}".
* 2003-03-07 David Carlton <carlton@math.stanford.edu>David Carlton2003-03-0720-80/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * symtab.c (lookup_partial_symbol): Replace uses of SYMBOL_MATCHES_NATURAL_NAME by equivalent uses of SYMBOL_NATURAL_NAME, strcmp_iw. * symtab.h (SYMBOL_MATCHES_NATURAL_NAME): Delete. * minsyms.c (lookup_minimal_symbol_linkage): Make static. (lookup_minimal_symbol_natural): Ditto. (lookup_minimal_symbol): Only search on linkage names; rename first argument to 'linkage_name'. (lookup_minimal_symbol_linkage): Delete. (lookup_minimal_symbol_natural): Delete. (add_minsym_to_demangled_hash_table): Go back to using SYMBOL_DEMANGLED_NAME instead of SYMBOL_NATURAL_NAME. (lookup_minimal_symbol_aux): Don't use SYMBOL_MATCHES_NATURAL_NAME: do a strcmp_iw on SYMBOL_DEMANGLED_NAME instead. Add comment. (build_minimal_symbol_hash_tables): Go back to only adding to demangled has table if SYMBOL_DEMANGLED_NAME is non-NULL. * symtab.h: Delete declarations for lookup_minimal_symbol_linkage and lookup_minimal_symbol_natural. * valops.c (find_function_in_inferior): Use lookup_symbol_linkage instead of lookup_symbol. Change comment. * remote.c (remote_check_symbols): Use lookup_minimal_symbol_linkage_or_natural instead of lookup_minimal_symbol, but add FIXME comment as well. * objc-lang.c: Ditto. * c-exp.y: Use lookup_minimal_symbol_linkage_or_natural instead of lookup_minimal_symbol. * p-exp.y: Ditto. * objc-exp.y: Ditto. * m2-exp.y: Ditto. * jv-exp.y (push_expression_name): Ditto. * f-exp.y: Ditto. * printcmd.c (address_info): Ditto. * symtab.h: Declare lookup_minimal_symbol_linkage_or_natural. * minsyms.c (lookup_minimal_symbol_linkage_or_natural): New. * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME. * tracepoint.c (scope_info): Ditto. * symtab.c (find_pc_sect_line): Ditto. * stabsread.c (define_symbol): Ditto. * sol-thread.c (info_cb): Ditto. * printcmd.c (address_info): Ditto. * hppa-tdep.c (hppa_fix_call_dummy): Ditto. (hppa_in_solib_call_trampoline): Ditto. * findvar.c (read_var_value): Ditto.
* 2003-03-06 David Carlton <carlton@math.stanford.edu>David Carlton2003-03-075-86/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | * minsyms.c (add_minsym_to_hash_table): Use SYMBOL_LINKAGE_NAME. (add_minsym_to_demangled_hash_table): Use SYMBOL_NATURAL_NAME. (build_minimal_symbol_hash_tables): Add all minsyms to demangled hash table. (install_minimal_symbols): Use SYMBOL_LINKAGE_NAME. (find_solib_trampoline_target): Ditto. (compare_minimal_symbols): Ditto. (compact_minimal_symbols): Ditto. * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete. * minsyms.c (lookup_minimal_symbol_text): Replace use of DEPRECATED_SYMBOL_MATCHES_NAME by strcmp on linkage name. (lookup_minimal_symbol_solib_trampoline): Ditto. * symtab.h: Declare lookup_minimal_symbol_linkage, lookup_minimal_symbol_natural. * minsyms.c (lookup_minimal_symbol_aux): New function. (lookup_minimal_symbol_linkage): Ditto. (lookup_minimal_symbol_natural): Ditto. (lookup_minimal_symbol): Move body into lookup_minimal_symbol_aux. 2003-03-06 David Carlton <carlton@math.stanford.edu> * gdb.c++/templates.exp (do_tests): Make expressions for 'ptype Bar' and 'ptype Qux' more generous.
* 2003-03-05 David Carlton <carlton@math.stanford.edu>David Carlton2003-03-06336-11277/+20297
| | | | * Merge with mainline. Tag is carlton_dictionary-20030305-merge.
* 2003-02-27 David Carlton <carlton@math.stanford.edu>David Carlton2003-02-282-45/+33
| | | | | | | | * symtab.c (lookup_symbol_aux_namespace_scope): Rename from lookup_symbol_aux_using_loop. (lookup_symbol_aux_using): Delete. (lookup_symbol_aux): Call lookup_symbol_aux_namespace_scope instead of lookup_symbol_aux_using.
* 2003-02-24 David Carlton <carlton@math.stanford.edu>David Carlton2003-02-252-1/+6
| | | | | * symtab.h: Declare 'struct objfile'; don't declare 'struct using_direct_node'.
* 2003-02-24 David Carlton <carlton@math.stanford.edu>David Carlton2003-02-242-1/+10
| | | | | | | * dv-mn103tim.c (read_special_timer6_reg): Add break after empty default: label. (write_special_timer6_reg): Ditto. Update copyright.
* 2003-02-21 David Carlton <carlton@math.stanford.edu>David Carlton2003-02-2215-445/+432
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * linespec.c (locate_compound_sym): Update call to lookup_symbol_namespace. * symtab.c (make_symbol_overload_list): Delete namespace_len argument. * symtab.h: Update declaration for make_symbol_overload_list. * valops.c (find_oload_champ_namespace_loop): New format for make_symbol_overload_list. * symtab.c (lookup_symbol_namespace): Delete namespace_len argument. (lookup_symbol_aux_using_loop): Update call to lookup_symbol_namespace. (make_symbol_overload_list_using): Delete namespace_len argument. * linespec.c (decode_namespace): Update call to lookup_symbol_namespace. * valops.c (value_namespace_elt): Ditto. * symtab.c (lookup_nested_type): Ditto. * symtab.h: Update declaration for lookup_symbol_namespace. * block.c (block_all_usings): Delete. (block_using): Make static. (block_using_iterator_next): New using_direct format. (block_using_iterator_first): Ditto. * buildsym.c (scan_for_anonymous_namespaces): Rename variables. (add_using_directive): New using functions. (end_symtab): Use cp_copy_usings. (copy_usings_to_obstack): Delete. * block.c: Tweak initial comment. (struct namespace_info): Move here. (block_initialize_namespace): Set scope to NULL! * block.h: Add compilation guards. Reorder and update declarations. * cp-support.c (cp_find_first_component): Return unsigned int. (cp_entire_prefix_len): New. (cp_add_using_obstack): Delete. (cp_add_using_xmalloc): Delete. (cp_copy_usings): Rewrite. (cp_free_usings): Delete. (cp_add_using): New. (cp_is_anonymous): Delete second argument. (xstrndup): New. * cp-support.h: Add compilation guards. Update declarations. * coffread.c: New variable coff_source_file. (coff_start_symtab): Use coff_source_file. (complete_symtab): Ditto. (coff_end_symtab): Ditto. (coff_symtab_read): Ditto. * dbxread.c (find_stab_function_addr): Const fix. * buildsym.h: Const fix. * buildsym.c (start_symtab): Const fix. (start_subfile): Ditto. * cp-support.c (cp_add_using_xmalloc): Copy name. * dwarf2read.c (read_namespace): Loop through extensions correctly. (read_file_scope): Const fix. (dwarf2_add_field): Ditto. (read_structure_scope): Ditto. (read_enumeration): Ditto. (read_typedef): Ditto. * buildsym.c (finish_block): Update comments and simplify code when setting scope. * buildsym.h: Add opaque declaration of 'struct block'. Change comment before processing_current_prefix. * arm-tdep.c (arm_gdbarch_init): Add break; after default:.
* 2003-02-19 David Carlton <carlton@math.stanford.edu>David Carlton2003-02-206-41/+190
| | | | | | | | | | | | | | | | | | | | | | | | * mdebugread.c (new_block): Add 'function' arg. (parse_symbol): New arg to new_block. (new_symtab): Ditto. (fixup_sigtramp): Ditto. * cp-support.c (initialize_namespace_blocks): Use dict_hashed_expandable instead of dict_linear_expandable. * jv-lang.c (get_java_class_symtab): Ditto. * dictionary.c (enum dict_type): Add DICT_HASHED_EXPANDABLE. (struct dictionary_hashed_expandable): New. (struct dictionary): Add hashed_expandable member. (DICT_EXPANDABLE_INITIAL_CAPACITY): Rename from DICT_LINEAR_EXPANDABLE_INITIAL_CAPACITY. (dict_create_linear_expandable): Use DICT_EXPANDABLE_INITIAL_CAPACITY. (dict_linear_vtbl): New. (dict_create_hashed_expandable): New. (add_symbol_hashed_expandable): New. (dict_create_hashed): Move code into insert_symbol_hashed. (insert_symbol_hashed): New. (expand_hashtable): New. * dictionary.h: Declare dict_create_hashed_expandable.
* 2003-02-12 David Carlton <carlton@math.stanford.edu>David Carlton2003-02-128-114/+238
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * linespec.c (examine_compound_token): Call decode_namespace. (decode_namespace): New function. * cp-support.c (cp_find_first_component): Return the offset, not a pointer. (check_possible_namespace_symbols_loop): Update call to cp_find_first_component. (cp_check_possible_namespace_symbols): Ditto. (cp_func_name): Ditto. * buildsym.c (scan_for_anonymous_namespaces): Ditto. (finish_block): Ditto. * linespec.c (examine_compound_token): Ditto. * symtab.c (lookup_symbol_aux_using_loop): Ditto. * valops.c (find_oload_champ_namespace_loop): Ditto. * cp-support.h: Declare cp_find_first_component to return an int. * Makefile.in (linespec.o): cp_support_h. * linespec.c (symtab_from_filename): Rename from handle_filename. (decode_line_1): Call symtab_from_filename instead of handle_filename. (locate_compound_sym): Rename from locate_class_sym. Search in such a way that we find namespace symbols, too. (examine_compound_token): Call locate_class_sym instead of locate_compound_sym. (locate_compound_sym): Add NAMESPACE arg. (examine_compound_token): New arg to locate_compound_sym. Handle TYPE_CODE_NAMESPACE. #include "cp-support.hp"
* 2003-02-11 David Carlton <carlton@math.stanford.edu>David Carlton2003-02-127-80/+120
| | | | | | | | | | | | | | | * valops.c (find_oload_champ): Add comment. (find_oload_champ_namespace_loop): Fix memory management. (find_oload_champ_namespace): Add comment. (find_overload_match): Free oload_syms, oload_champ_bv. * gdbtypes.c (rank_function): Add comment. * valops.c (find_oload_champ_namespace_loop): Allow num_fns to be zero. * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered. (lookup_block_symbol): Delete comment. * symfile.c (compare_psymbols): Use strcmp_iw_ordered. * defs.h: Declare strcmp_iw_ordered. * utils.c (strcmp_iw_ordered): New function.
* 2003-02-07 David Carlton <carlton@math.stanford.edu>David Carlton2003-02-082-1/+4
| | | | * gdb_mbuild.sh (keep): Delete extra shift after -f.
* 2003-02-07 David Carlton <carlton@math.stanford.edu>David Carlton2003-02-07606-56102/+75768
| | | | * Merge with mainline; tag is carlton_dictionary-20030207-merge.
* 2003-01-31 David Carlton <carlton@math.stanford.edu>David Carlton2003-02-0114-118/+452
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From Jim Blandy <jimb@redhat.com>: Use a single, consistent representation for an empty minimal symbol table in an objfile. * objfiles.c (terminate_minimal_symbol_table): New function. (allocate_objfile): Call it. * objfiles.h (terminate_minimal_symbol_table): New declaration. (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is non-NULL. * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether objfile has minimal symbols, compare minimal_symbol_count to zero, instead of comparing msymbols with NULL. * objfiles.c (have_minimal_symbols): Same. * solib-sunos.c (solib_add_common_symbols): Call terminate_minimal_symbol_table. * symfile.c (reread_symbols): Same. * objfiles.h: Revert patch from 2003-01-27, to be replaced by similar patch from Jim Blandy. * objfiles.c (objfile_relocate): Ditto. * i386-linux-tdep.c (find_minsym_and_objfile): Ditto. * arm-linux-tdep.c (find_minsym_and_objfile): Ditto. * gdbtypes.h: Delete INTEGER_COERCION_BADNESS, FLOAT_COERCION_BADNESS. * gdbtypes.c (rank_one_type): Replace all uses of INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS. * valops.c (find_overload_match): Call cp_func_name. * cp-support.h: Declare cp_func_name. * cp-support.c (cp_func_name): New function. 2003-01-30 David Carlton <carlton@math.stanford.edu> * valops.c (find_overload_match): Move code into find_oload_champ_namespace. (find_oload_champ_namespace): New function, which immediately gets eviscerated and turned into a call to find_oload_champ_namespace_loop. (find_oload_champ_namespace_loop): New function. * symtab.c (make_symbol_overload_list): Move entire body into make_symbol_overload_list_qualified. (make_symbol_overload_list_qualified): New. (read_in_psymtabs): New. (make_symbol_overload_list_qualified): Rewrite. (make_symbol_overload_list_using): New. (lookup_symbol_namespace): Use alloca, not xmalloc. (make_symbol_overload_list): Put some memory management stuff back in.
* 2003-01-28 David Carlton <carlton@math.stanford.edu>David Carlton2003-01-294-39/+43
| | | | | | | | | | | | | | | * valops.c (find_overload_match): Calculate func_name via SYMBOL_CPLUS_DEMANGLED_NAME + remove_params. * symtab.c (remove_params): Make extern. * symtab.h: Add declaration for remove_params. * symtab.c (overload_list_add_symbol): Change second arg to const char *. * valops.c (find_overload_match) Update call to make_symbol_overload_list. * symtab.h: Update declaration for make_symbol_overload_list. * symtab.c (make_symbol_overload_list): Change arguments. * valops.c (find_overload_match): Rename cleanups to old_cleanups; handle freeing func_name via cleanups.
* 2003-01-27 David Carlton <carlton@math.stanford.edu>David Carlton2003-01-285-26/+40
| | | | | | | | | * objfiles.h: Add comments about objfile->msymbols being NULL. * objfiles.c (objfile_relocate): Enclose ALL_OBJFILE_MSYMBOLS in guard. * i386-linux-tdep.c (find_minsym_and_objfile): Call ALL_MSYMBOLS instead of ALL_OBJFILES and ALL_OBJFILE_MSYMBOLS. * arm-linux-tdep.c (find_minsym_and_objfile): Ditto.
* 2003-01-24 David Carlton <carlton@math.stanford.edu>David Carlton2003-01-257-106/+252
| | | | | | | | | | | | | | | | | | | | | * valops.c (find_oload_champ): New function. (find_overload_match): Separate code into find_oload_champ and oload_method_static. (find_oload_champ): Call oload_method_static. (oload_method_static): New function. (find_overload_match): Call classify_oload_match. (classify_oload_match): New function. * value.h: Update declaration of find_overload_match. * eval.c (evaluate_subexp_standard): Pass current block to find_overload_match. * valops.c (find_overload_match): Add CURRENT_BLOCK arg. 2003-01-24 David Carlton <carlton@math.stanford.edu> * gdb.c++/overload.exp: Add tests involving overloadNamespace. Delete comment about GDB crashing. * gdb.c++/overload.cc: Add dummyClass, dummyInstance, overloadNamespace, and XXX.
* 2003-01-20 David Carlton <carlton@math.stanford.edu>David Carlton2003-01-2113-25/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * p-exp.y: Add block to OP_FUNCALL. * objc-exp.y: Add block to OP_FUNCALL. * m2-exp.y: Add block to OP_FUNCALL. * c-exp.y: Add block to OP_FUNCALL. * ada-exp.y: Add block to OP_FUNCALL. (write_object_renaming): Ditto. * parse.c (length_of_subexp): Split off OP_FUNCALL. (prefixify_subexp): Ditto. * expprint.c (print_subexp): Change offset for OP_FUNCALL. (dump_subexp): Ditto. * eval.c (evaluate_subexp_standard): Change offset for OP_FUNCALL. * ada-lang.c (ada_resolve_subexp): Add comment on OP_FUNCALL. (replace_operator_with_call): Add block to OP_FUNCALL. (ada_evaluate_subexp): Change offset for OP_FUNCALL. * expression.h (exp_opcode): Change comments before OP_FUNCALL and OP_F77_UNDETERMINED_ARGLIST. 2003-01-14 David Carlton <carlton@math.stanford.edu> * symtab.c (search_symbols): Add comment. (lookup_symbol_aux_using): Function name should start line. (lookup_symbol_aux_using_loop): Ditto. (lookup_block_symbol): Add comment. 2003-01-13 David Carlton <carlton@math.stanford.edu> * dwarf2read.c (read_structure_scope): Add comment. (add_partial_structure): Ditto. * symtab.c (lookup_transparent_type): Add comment.