aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2003-02-222003-02-21 David Carlton <carlton@math.stanford.edu>David Carlton15-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-202003-02-19 David Carlton <carlton@math.stanford.edu>David Carlton6-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-122003-02-12 David Carlton <carlton@math.stanford.edu>David Carlton8-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-122003-02-11 David Carlton <carlton@math.stanford.edu>David Carlton7-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-082003-02-07 David Carlton <carlton@math.stanford.edu>David Carlton2-1/+4
* gdb_mbuild.sh (keep): Delete extra shift after -f.
2003-02-072003-02-07 David Carlton <carlton@math.stanford.edu>David Carlton555-56194/+44891
* Merge with mainline; tag is carlton_dictionary-20030207-merge.
2003-02-07This commit was manufactured by cvs2svn to create branchnobody56-0/+30969
'carlton_dictionary-branch'. Cherrypick from master 2003-02-07 04:21:34 UTC Andrew Cagney <cagney@redhat.com> '2003-02-06 Andrew Cagney <ac131313@redhat.com>': bfd/cpu-iq2000.c bfd/cpu-msp430.c bfd/elf32-iq2000.c bfd/elf32-msp430.c bfd/elf32-sh64.h config/acx.m4 gdb/ChangeLog-2002 gdb/cli/cli-interp.c gdb/config/mips/linux64.mt gdb/config/mips/tm-linux64.h gdb/frame-unwind.c gdb/frame-unwind.h gdb/inflow.h gdb/interps.c gdb/interps.h gdb/mi/mi-interp.c gdb/mi/mi-main.h gdb/sentinel-frame.c gdb/sentinel-frame.h gdb/testsuite/config.hin gdb/testsuite/gdb.base/advance.c gdb/testsuite/gdb.base/advance.exp gdb/testsuite/gdb.base/args.c gdb/testsuite/gdb.base/args.exp gdb/testsuite/gdb.base/detach.exp gdb/testsuite/gdb.base/float.exp gdb/testsuite/gdb.base/psymtab.exp gdb/testsuite/gdb.base/psymtab1.c gdb/testsuite/gdb.base/psymtab2.c gdb/testsuite/gdb.base/until.exp gdb/testsuite/gdb.c++/pr-1023.cc gdb/testsuite/gdb.c++/pr-1023.exp gdb/testsuite/gdb.mi/mi-cli.exp gdb/testsuite/gdb.mi/mi-syn-frame.c gdb/testsuite/gdb.mi/mi-syn-frame.exp include/elf/iq2000.h include/elf/msp430.h include/elf/ppc64.h include/opcode/msp430.h libiberty/pex-common.h libiberty/pex-djgpp.c libiberty/pex-mpw.c libiberty/pex-msdos.c libiberty/pex-os2.c libiberty/pex-unix.c libiberty/pex-win32.c libiberty/pexecute.txh opcodes/iq2000-asm.c opcodes/iq2000-desc.c opcodes/iq2000-desc.h opcodes/iq2000-dis.c opcodes/iq2000-ibld.c opcodes/iq2000-opc.c opcodes/iq2000-opc.h opcodes/msp430-dis.c sim/arm/README
2003-02-012003-01-31 David Carlton <carlton@math.stanford.edu>David Carlton14-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-292003-01-28 David Carlton <carlton@math.stanford.edu>David Carlton4-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-282003-01-27 David Carlton <carlton@math.stanford.edu>David Carlton5-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-252003-01-24 David Carlton <carlton@math.stanford.edu>David Carlton7-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-212003-01-20 David Carlton <carlton@math.stanford.edu>David Carlton13-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.
2003-01-112003-01-10 David Carlton <carlton@math.stanford.edu>David Carlton5-12/+94
* objfiles.c (allocate_objfile): Always set name. * dwarf2read.c (scan_partial_symbols): Don't call add_partial_structure on unions. (add_partial_structure): Look for enclosing namespace names. (read_structure_scope): Look enclosing namespace/class names. (new_symbol): For C++ structures, always grab the name from the type's name. 2003-01-10 David Carlton <carlton@math.stanford.edu> * gdb.c++/templates.exp (do_tests): Update some of the regexps to be a bit more generous.
2003-01-082003-01-07 David Carlton <carlton@math.stanford.edu>David Carlton3-7/+54
* dwarf2read.c (add_partial_structure): New function. (scan_partial_symbols): Call add_partial_structure. New variable info_ptr_updated. * symtab.h (struct general_symbol_info): Make demangled_names const char *.
2003-01-072003-01-06 David Carlton <carlton@math.stanford.edu>David Carlton9-174/+124
* config/djgpp/fnchange.lst: Mention testsuite/gdb.c++/namespace1.cc. * cp-support.h: Declare cp_lookup_namespace_symbol. * cp-support.c (cp_lookup_namespace_symbol): New function. (cp_check_namespace_symbol): Call cp_lookup_namespace_symbol. (cp_lookup_possible_namespace_symbol): Update comment. * symtab.c (lookup_symbol_aux_file): Add 'anonymous_namespace' argument. (lookup_symbol_namespace): Call lookup_symbol_aux_file with new argument. * cp-support.h: Declare cp_is_anonymous. * cp-support.c (cp_is_anonymous): New function. * buildsym.c (add_symbol_to_list): Don't test for anonymous namespace mention here. (scan_for_anonymous_namespaces): Test for it here, instead. * symtab.c (lookup_symbol_aux_minsyms): Delete. (lookup_symbol_aux_nonlocal): Don't call lookup_symbol_aux_minsyms. 2003-01-06 David Carlton <carlton@math.stanford.edu> * gdb.c++/namespace.exp: Test anonymous namespaces and multiple files. * gdb.c++/namespace1.cc: Add anonymous namespaces.
2002-12-24 * config/sparc/tm-sparc.h: Delete duplicate definition ofDavid Carlton1-1/+0
DEPRECATED_PC_IN_CALL_DUMMY.
2002-12-242002-12-24 David Carlton <carlton@math.stanford.edu>David Carlton2-10/+6
* MAINTAINERS: Delete OBSOLETE targets. * config/sparc/tm-sparc.h: Delete duplicate definition of DEPRECATED_PC_IN_CALL_DUMMY.
2002-12-242002-12-23 David Carlton <carlton@math.stanford.edu>David Carlton3-90/+85
* symtab.c (search_symbols): Update comment. (lookup_symbol): Don't demangle names. (lookup_symbol_minsym): Delete FIXME comment. (lookup_symbol_linkage): Add comment. (lookup_symbol_aux): Rename 'mangled_name' argument to 'linkage_name'. (lookup_symbol_aux_local): Ditto. (lookup_symbol_aux_block): Ditto. (lookup_symbol_aux_nonlocal): Ditto. (lookup_symbol_aux_file): Ditto. (lookup_symbol_aux_symtabs): Ditto. (lookup_symbol_aux_psymtabs): Ditto. (lookup_symbol_aux_using): Ditto. (lookup_symbol_aux_using_loop): Ditto. (lookup_symbol_namespace): Ditto. (lookup_symbol_aux_minsyms): Ditto. * symfile.c (psymbol_init_demangled_name): Delete unnecessary variable, initialization.
2002-12-232002-12-23 David Carlton <carlton@math.stanford.edu>David Carlton960-83811/+74697
* Merge from mainline; tag is carlton_dictionary-20021223-merge.
2002-12-21This commit was manufactured by cvs2svn to create branchnobody22-0/+6648
'carlton_dictionary-branch'. Cherrypick from master 2002-12-21 19:58:07 UTC Mark Kettenis <kettenis@gnu.org> '* osabi.c: Include "gdb_assert.h" and "gdb_string.h".': bfd/bfdio.c bfd/bfdwin.c config/accross.m4 gdb/hppa-hpux-tdep.c gdb/m68k-tdep.h gdb/m68klinux-tdep.c gdb/mi/mi-cmd-env.c gdb/mips-tdep.h gdb/testsuite/gdb.base/store.c gdb/testsuite/gdb.base/store.exp libiberty/make-relative-prefix.c readline/compat.c readline/doc/history.0 readline/doc/history.3 readline/examples/readlinebuf.h readline/examples/rlcat.c readline/mbutil.c readline/misc.c readline/rlmbutil.h readline/rltypedefs.h readline/support/wcwidth.c readline/text.c
2002-12-212002-12-20 David Carlton <carlton@math.stanford.edu>David Carlton37-227/+330
* symtab.c (lookup_symbol_aux_minsyms): Don't call lookup_symbol_aux from within this. * values.c (value_static_field): lookup_symbol_linkage. (value_fn_field): lookup_symbol_linkage. * valops.c (value_struct_elt_for_reference): lookup_symbol_linkage. * blockframe.c (inside_main_func): lookup_symbol_linkage. * source.c (select_source_symtab): lookup_symbol_linkage. * nlmread.c (nlm_symfile_read): Call lookup_symbol_linkage. * nindy-tdep.c (nindy_frame_chain_valid): Call lookup_symbol_linkage. * linespec.c (count_methods): Call lookup_symbol_linkage. (add_matching_methods): Ditto. (add_constructors): Ditto. * hppa-tdep.c (find_stub_with_shl_get): Call lookup_symbol_linkage. Delete symbol2. (initialize_hp_cxx_exception_support): Call lookup_symbol_linkage. * cli/cli-cmds.c (edit_command): SYMBOL_PRINT_NAME. (list_command): SYMBOL_PRINT_NAME. * valops.c (value_of_variable): SYMBOL_PRINT_NAME (hand_function_call): SYMBOL_PRINT_NAME. * typeprint.c (typedef_print): SYMBOL_PRINT_NAME. * tracepoint.c (tracepoints_info): SYMBOL_PRINT_NAME. * symtab.c (lookup_partial_symbol): SYMBOL_BEST_NAME. (compare_search_syms): SYMBOL_BEST_NAME. (print_symbol_info): SYMBOL_PRINT_NAME. (print_msymbol_info): SYMBOL_PRINT_NAME. (rbreak_command): SYMBOL_PRINT_NAME. * symmisc.c (print_symbol): SYMBOL_PRINT_NAME. * stack.c (print_frame): SYMBOL_PRINT_NAME. (frame_info): SYMBOL_PRINT_NAME. (print_block_frame_locals): SYMBOL_PRINT_NAME. (print_block_frame_labels): SYMBOL_PRINT_NAME. (print_frame_arg_vars): SYMBOL_PRINT_NAME. (return_command): SYMBOL_PRINT_NAME. * stabsread.c (define_symbol): SYMBOL_PRINT_NAME. * p-valprint.c (pascal_val_print): SYMBOL_PRINT_NAME. * printcmd.c (build_address_symbolic): SYMBOL_PRINT_NAME. (sym_info): SYMBOL_PRINT_NAME. (print_frame_args): SYMBOL_PRINT_NAME. * objc-lang.c (compare_selectors): SYMBOL_BEST_NAME. (compare_classes): SYMBOL_BEST_NAME. * maint.c (maintenance_translate_address): SYMBOL_PRINT_NAME. * linespec.c (find_method): SYMBOL_PRINT_NAME. (select_symbols): SYMBOL_PRINT_NAME. * infcmd.c (jump_command): SYMBOL_PRINT_NAME. * findvar.c (locate_var_value): SYMBOL_PRINT_NAME. * expprint.c (print_subexp): SYMBOL_PRINT_NAME. * c-valprint.c (c_val_print): SYMBOL_PRINT_NAME. * buildsym.c (finish_block): SYMBOL_PRINT_NAME. * breakpoint.c (print_one_breakpoint): SYMBOL_PRINT_NAME. * ax-gdb.c (gen_var_ref): SYMBOL_PRINT_NAME. * ada-typeprint.c (ada_typedef_print): SYMBOL_PRINT_NAME. * ada-lang.c (user_select_syms): Use SYMBOL_PRINT_NAME instead of SYMBOL_SOURCE_NAME. (user_select_syms): (ada_finish_decode_line_1): Use SYMBOL_BEST_NAME instead of SYMBOL_SOURCE_NAME. * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME. * symfile.c (compare_symbols): Use SYMBOL_BEST_NAME, not SYMBOL_SOURCE_NAME. (compare_psymbols): Ditto. * symtab.c (lookup_symbol_linkage): New function. * symtab.h: Declare lookup_symbol_linkage. * c-valprint.c (c_val_print): Call lookup_symbol_minsym. * symtab.c (lookup_symbol_aux_minsyms): Call minsym_static. * minsyms.c (minsym_static): New function. * symtab.h: Declare minsym_static. * symtab.c (lookup_symbol_minsym): New function. (search_symbols): Call lookup_symbol_minsym instead of lookup_symbol. (lookup_symbol_namespace): Don't take apart NAME. * symtab.h: Declare lookup_symbol_minsym. * printcmd.c (build_address_symbolic): Don't use old version of SYMBOL_LINKAGE_NAME. * symtab.c (lookup_block_symbol): Change mangled names to linkage name, and use SYMBOL_LINKAGE_NAME as appropriate. * symtab.h (SYMBOL_LINKAGE_NAME): New macro, with a different meaning from the old macro of the same name. Also, add comments about proper uses of names.
2002-12-192002-12-18 David Carlton <carlton@math.stanford.edu>David Carlton11-74/+374
* symtab.c (lookup_symbol_aux_file): Call cp_lookup_possible_namespace_symbol. * dwarf2read.c (add_partial_symbol): Sometimes check for possible namespace symbols. * cp-support.c (maintenance_print_namespace): Handle possible_namespace_block, too. (cp_lookup_possible_namespace_symbol): New function. * cp-support.h: Declare cp_check_possible_namespace_symbols, cp_lookup_possible_namespace_symbol. * cp-support.c (check_one_possible_namespace_symbol): New function. (cp_check_possible_namespace_symbols): New function. (check_possible_namespace_symbols_loop): New function. * symfile.h: Update declaration for add_psymbol_to_list. * symfile.c (psymbol_init_demangled_name): New function. (add_psymbol_to_list): Change SYMBOL_INIT_LANGUAGE_SPECIFIC to psymbol_init_demangled_name. (add_psymbol_to_list): Return a const struct psymbol *. * Makefile.in (dwarf2read.o): Don't depend on bcache_h. * dwarf2read.c: Don't #include "bcache.h" * cp-support.c (get_namespace_block): Allocate blocks via allocate_block. (initialize_namespace_blocks): New function. New variable possible_namespace_block. (get_namespace_block): Call initialize_namespace_blocks. (free_namespace_blocks): Rename from free_namespace_block; handle possible_namespace_block, too. (get_possible_namespace_block): New function. * jv-lang.c (get_java_class_symtab): Ditto. * block.c (allocate_block): New function. * block.h: Declare allocate_block.
2002-12-182002-12-17 David Carlton <carlton@math.stanford.edu>David Carlton11-117/+205
* c-exp.y (yylex): Modify the #if 1 block to handle nested types in a more honest manner. * symtab.c (lookup_nested_type): New function. * symtab.h: Declare lookup_nested_type. 2002-12-16 David Carlton <carlton@math.stanford.edu> * symtab.c (lookup_partial_symbol): Don't search past the end of the partial symbols. * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c. * dwarf2read.c (new_symbol): Only make global symbols associated to structures, etc. if the current language is C++. (add_partial_symbol): Ditto (for partial symbols). 2002-12-17 David Carlton <carlton@math.stanford.edu> * gdb.c++/m-data.cc: Whitespace cleanup, to match mainline patch. * gdb.c++/m-static.cc: Ditto. * gdb.c++/namespace.exp: Fix comment. Delete third argument to all the gdb_tests. 2002-12-16 David Carlton <carlton@math.stanford.edu> * gdb.c++/namespace.exp: Change KFAIL messages to point to c++/XXX instead of gdb/XXX.
2002-12-012002-11-29 David Carlton <carlton@bactrian.org>David Carlton5-25/+79
* dwarf2read.c (add_partial_symbol): Add partial symbols corresponding to classes, etc. to global list. (new_symbol): Ditto, mutatis mutandem. 2002-11-29 David Carlton <carlton@bactrian.org> * gdb.c++/namespace.exp: Add OtherFileClass tests. * gdb.c++/namespace1.cc (C): New file.
2002-11-282002-11-27 David Carlton <carlton@math.stanford.edu>David Carlton47-396/+788
* dwarf2read.c (add_partial_enumeration): New function. (scan_partial_symbols): Call add_partial_enumeration. (locate_pdi_sibling): New function. (scan_partial_symbols): Call locate_pdi_sibling. Get rid of nesting_level. (pdi_needs_namespace): New function. (add_partial_symbol): Add 'namespace' arg; calculate full name when appropriate. (scan_partial_symbols): Update calls to add_partial_symbol. (add_partial_enumeration): Ditto. (read_enumeration): Add processing_current_prefix to name when appropriate. (new_symbol): Set names of enumerators and typedefs appropriately if processing_has_namespace_info. * symtab.c (lookup_symbol_namespace): Rename 'namespace' argument to 'namespace_name'. * symtab.h: Ditto. * symtab.c (lookup_symbol_namespace): Delete FIXME comments; add a new one. (lookup_symbol_aux_file): New function. (lookup_symbol_aux): Delete FIXME comment. (lookup_symbol_aux): Don't search static block explicitly; delete FIXME comments. * valops.c (value_namespace_elt): Update call to lookup_symbol_namespace. * symtab.h: Update declaration for lookup_symbol_namespace. * symtab.c (lookup_symbol_namespace): Delete 'using' argument and add 'block' argument; get using directives via iterators. (lookup_symbol_aux_using_loop): Delete 'using' argument and add 'block' argument. (lookup_symbol_aux_using): Don't calculate using directives. * block.c (block_using_iterator_first): New function. (block_using_iterator_next): Ditto. * block.h: Add comment. (struct block_using_iterator): New struct. Declare block_using_iterator_first, block_using_iterator_next. 2002-11-26 David Carlton <carlton@math.stanford.edu> * dwarf2read.c (read_structure_scope): Set type name and processing_current_prefix appropriately. (new_symbol): Make sure that, in symbols associated to class types, the name includes appropriate namespaces. * buildsym.h: Rename processing_current_namespace to processing_current_prefix. * buildsym.c (finish_block): Ditto. * dwarf2read.c (psymtab_to_symtab_1): Ditto. (read_namespace): Ditto. Also rename previous_namespace to previous_prefix. Now come a thousand and one const correctness fixes: * p-typeprint.c (pascal_print_type): Const. (pascal_type_print_method_args): Const. * p-lang.h: Const. * m2-typeprint.c (m2_print_type): Const. * valops.c (hand_function_call): Const. * jv-lang.c (java_primitive_type_from_name): Const. * jv-lang.h: Const. * jv-typeprint.c (java_print_type): Const. * language.c: (unk_lang_print_type): Const. * stack.c (frame_info): Const. * linespec.c (find_methods): Const. (find_method_name): Const * f-lang.h: Const. * f-typeprint.c (f_print_type): Const. * c-typeprint.c (c_print_type): Const. * c-lang.h: Const. * gdbtypes.h: Const. * gdbtypes.c (lookup_primitive_typename): Const. * stack.c (print_frame): Const. (func_command): Delete pointless cast. * linespec.c (find_method_name): Const. * language.h: Const. * symfile.c (compare_psymbols): Const. * symtab.c (completion_list_add_name): Const. * breakpoint.c (break_at_finish_at_depth_command_1): Remove useless cast. (break_at_finish_command_1): Ditto. * typeprint.c (type_print): Const. * symtab.h: Const. * symtab.c (gdb_mangle_name): Const. (symbol_init_demangled_name): Const. (symbol_demangled_name): Const. * defs.h: Const. * printcmd.c (build_address_symbolic): Const. * valops.c (search_struct_method): Const. * cp-valprint.c (cp_is_vtbl_ptr_type): Const. (cp_print_value): Const. (cp_print_class_member): Const. * c-typeprint.c (cp_type_print_derivation_info): Const. (c_type_print_varspec_prefix): Const. (c_type_print_base): Const. * p-valprint.c (pascal_object_is_vtbl_ptr_type): Const. (pascal_object_print_value): Const. (pascal_object_print_class_member): Const. * p-typeprint.c (pascal_type_print_derivation_info): Const. (pascal_type_print_varspec_prefix): Const. (pascal_type_print_base): Const. * jv-typeprint.c (java_type_print_base): Const. * jv-lang.h (java_demangle_type_signature): Const. * jv-lang.c (java_demangle_type_signature): Const. (java_demangled_signature_length): Const. (java_demangled_signature_copy): Const. * jv-typeprint.c (java_type_print_derivation_info): Const. * jv-valprint.c (java_value_print): Const. (java_print_value_fields): Const. * jv-lang.c (is_object_type): Const. (evaluate_subexp_java): Const. * stabsread.c (read_cpp_abbrev): Const. (complain_about_struct_wipeout): Const. (cleanup_undefined_types): Const. * gdbtypes.h: Const. * gdbtypes.c (add_name): Second arg const. (lookup_typename): Const. (lookup_unsigned_typename): Const. (lookup_signed_typename): Const. * linespec.c (find_methods): const char *class_name. * symtab.c (gdb_mangle_name): const char *newname. * valops.c (destructor_name_p): const char *dname. (search_struct_field): First arg const. * gdbtypes.c (check_typedef): const char *name (multiple places). (cfront_mangle_name): const char *newname. * gdbtypes.c (add_mangled_type): const char *tname. * valops.c (find_overload_match): const char *obj_type_name. * utils.c (gdb_print_host_address): Make first arg const. * defs.h: Declare first arg of gdb_print_host_address to be const. * valarith.c (find_size_for_pointer_math): const char *name. 2002-11-27 David Carlton <carlton@math.stanford.edu> * gdb.c++/m-data.cc (main): Add marker comment. * gdb.c++/m-data.exp: Use marker comment instead of line numbers. * gdb.c++/m-data.cc: Delete superfluous namespace. * gdb.c++/m-static.cc: Ditto. * gdb.c++/m-static1.cc: Ditto. * carlton_runtest: Compare based on gdb.sum, not based on output. * carlton_runnamespace: Ditto. 2002-11-26 David Carlton <carlton@math.stanford.edu> * gdb.c++/namespace.exp: Put tests for CClass. * gdb.c++/namespace.cc (C): Add CClass.
2002-11-242002-11-24 David Carlton <carlton@bactrian.org>David Carlton12-35/+113
* Makefile.in (c-typeprint.o): Depend on gdb_assert_h. * c-typeprint.c: #include "gdb_assert.h" * gdbtypes.c (recursive_dump_type): Handle TYPE_CODE_NAMESPACE. * c-typeprint.c (c_type_print_varspec_prefix): Ditto. (c_type_print_varspec_suffix): Ditto. (c_type_print_base): Ditto. * typeprint.c (print_type_scalar): Ditto. * printcmd.c (print_formatted): Ditto. * language.c (structured_type): Ditto. * cp-support.c (cp_check_namespace_symbol): Allocate type via init_type. * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE. * valops.c (value_namespace_elt): Handle sym == NULL. 2002-11-24 David Carlton <carlton@bactrian.org> * gdb.c++/namespace.exp: Eliminate some of the single quotes, and duplicate some of the single quote tests without the quotes. Change "print E::ce" test. Add some ptype <namespace> tests. * carlton_runnamespace: Use different files for compiler with and without debug info.
2002-11-232002-11-22 David Carlton <carlton@math.stanford.edu>David Carlton23-95/+223
* linespec.c (examine_compound_token): Rewrite as switch statement, and add FIXME comment. * frame.h: Make arg of block_innermost_frame const. * blockframe.c (block_innermost_frame): Make arg const. * block.h: Make args to block_function, contained_in const. * block.c (block_function): Make arg const. (contained_in): Ditto. * value.h: Make arg of symbol_read_needs_frame const. * findvar.c (symbol_read_needs_frame): Make arg const. * symtab.h: Make first arg of symbol_demangled_name const. * symtab.c (symbol_demangled_name): Make arg const. * value.h: Make first arg of read_var_value const. * findvar.c (read_var_value): Make first arg const. * Makefile.in (valops.o): Depend on cp_support_h. * valops.c: #include "cp-support.h" * symtab.h: Add FIXME about name of namespace_enum. Add opaque declaration of struct using_direct_node. * symtab.c (lookup_symbol_namespace): Make extern; rename args. * symtab.h: Declare lookup_symbol_namespace. * valops.c (value_struct_elt_for_reference): Make 'name' a const char *. (value_namespace_elt): New function. * expprint.c (print_subexp): Ditto. (dump_subexp): Ditto. * parse.c (length_of_subexp): Ditto. (prefixify_subexp): Ditto. * expression.h: Update comment to reflect the block in OP_SCOPE. * c-exp.y: Set block in OP_SCOPE expression. * jv-exp.y (push_qualified_expression_name): Put a NULL block in OP_SCOPE expression. * objc-exp.y: Ditto. * p-exp.y: Ditto. * eval.c (evaluate_subexp_standard): Handle OP_SCOPE via value_aggregate_elt. * value.h: Add declaration for value_aggregate_elt; delete declaration for value_struct_elt_for_reference. * valops.c (value_aggregate_elt): New function. (value_struct_elt_for_reference): Make static. Don't check type of curtype. * c-exp.y: Accept TYPE_CODE_NAMESPACE in qualified_name. * cp-support.c (cp_check_namespace_symbol): Set TYPE_NAME (type). 2002-11-22 David Carlton <carlton@math.stanford.edu> * gdb.c++/namespace.exp: Change a couple of tests to not use single quotes.
2002-11-222002-11-21 David Carlton <carlton@math.stanford.edu>David Carlton8-34/+133
* cp-support.c (get_namespace_objfile): Set namespace_objfile->name. * dwarf2read.c (scan_partial_symbols): Allow empty pdi.name if we're reading a namespace. * Makefile.in (dwarf2read.o): Depend on cp_support_h. * dwarf2read.c (scan_partial_symbols): Add 'namespace' arg. (dwarf2_build_psymtabs_hard): Update call to scan_partial_symbols. (add_partial_namespace): New function. (scan_partial_symbols): Call add_partial_namespace. #include "cp-support.h" * cp-support.c: Add me to contributors. * cp-support.h: Ditto. * buildsym.c (scan_for_anonymous_namespaces): Convert for loop into a clearer while loop. (finish_block): Ditto.
2002-11-212002-11-20 David Carlton <carlton@math.stanford.edu>David Carlton7-43/+219
* dwarf2read.c (scan_partial_symbols): Move lowpc, highpc initial and final setting to dwarf2_build_psymtabs_hard. (dwarf2_build_psymtabs_hard): Set lowpc, highpc outside of scan_partial_symbols. (scan_partial_symbols): Handle namespaces by calling ourself recursively. * Makefile.in (cp-support.o): Depend on gdbcmd_h. * cp-support.c (_initialize_cp_support): New function. (maintenance_print_namespace): New function. #include "gdbcmd.h" * cp-support.h: Add opaque declaration for 'struct symbol'. * symfile.h: Add comment saying that you must first include symtab.h. * Makefile.in (cp-support.o): Depend on dictionary_h. * cp-support.c: #include "dictionary.h" * gdbtypes.h: Add TYPE_CODE_NAMESPACE to enum type_code. * cp-support.h: Add declaration for cp_check_namespace_symbol. * Makefile.in (cp-support.o): Depend on gdbtypes_h. * cp-support.c: New variable namespace_objfile. (get_namespace_objfile): New function. (cp_check_namespace_symbol): New function. #include "gdbtypes.h" * Makefile.in (cp-support.o): Depend on symfile_h, symtab_h, block_h, objfiles_h. * cp-support.c: Add declaration for find_last_component. #include "symfile.h", "symtab.h", "block.h", "objfiles.h". New variable namespace_block. (get_namespace_block): New function. (free_namespace_block): New function.
2002-11-202002-11-19 David Carlton <carlton@math.stanford.edu>David Carlton7-36/+34
* block.c: Whitespace cleanup. * buildsym.c (finish_block): Delete #if'd out code. * symtab.c (lookup_symbol_namespace): Add comment. * dwarf2read.c (scan_partial_symbols): Fix typo. 2002-11-19 David Carlton <carlton@math.stanford.edu> * gdb.c++/namespace.exp: Delete FIXME comment. Fill in PR's for setup_kfail's. Fiddle with comments at top of file.
2002-11-162002-11-15 David Carlton <carlton@math.stanford.edu>David Carlton5-15/+38
* symtab.c (lookup_symbol_aux): Get at static block via block_static_block. (lookup_symbol_aux_local): Delete static_block argument, and use block_static_block. * block.h: Declare block_static_block. * block.c (block_static_block): New function. * linespec.c (decode_all_digits): Move up definition of need_canonical.
2002-11-152002-11-15 David Carlton <carlton@math.stanford.edu>David Carlton300-9099/+9952
* Merge from mainline; tag is carlton_dictionary-20021115-merge.
2002-11-15This commit was manufactured by cvs2svn to create branchnobody19-0/+9154
'carlton_dictionary-branch'. Cherrypick from master 2002-11-15 08:38:38 UTC Klee Dienes <kdienes@apple.com> '2002-11-15 Klee Dienes <kdienes@apple.com>': bfd/mach-o-target.c bfd/mach-o.c bfd/mach-o.h bfd/pef-traceback.h bfd/pef.c bfd/pef.h bfd/xsym.c bfd/xsym.h gdb/config/i386/interix.mh gdb/config/i386/interix.mt gdb/config/i386/nm-interix.h gdb/dummy-frame.c gdb/dummy-frame.h gdb/i386-interix-nat.c gdb/i386-interix-tdep.c gdb/reggroups.c gdb/reggroups.h gdb/testsuite/gdb.mi/gdb792.cc gdb/testsuite/gdb.mi/gdb792.exp
2002-11-152002-11-14 David Carlton <carlton@math.stanford.edu>David Carlton8-41/+142
* Makefile.in (symtab.o): Depend on gdb_assert_h. * symtab.c: #include "gdb_assert.h" * Makefile.in (namespace): Add 'namespace' target. * buildsym.c (finish_block): Comment out the using declarations generation. * block.h: Make argument to block_scope const. * block.c (block_scope): Make argument const. * symtab.c (lookup_symbol_aux_using): Gather usings via block_all_usings. (lookup_symbol_namespace): Rename from lookup_symbol_aux_using_loop. (lookup_symbol_aux_using_loop): New function. * block.h: Declare block_all_usings. * block.c (block_all_usings): New function. * symtab.c (lookup_symbol_aux_nonlocal): Delete FIXME comment. * buildsym.c (finish_block): Add FIXME comment. 2002-11-14 David Carlton <carlton@math.stanford.edu> * carlton_runnamespace: New file.
2002-11-142002-11-13 David Carlton <carlton@math.stanford.edu>David Carlton11-59/+247
* buildsym.c (finish_block): Initialize block_scope (block) in C++ function blocks. * dwarf2read.c: Delete variable current_namespace. (psymtab_to_symtab_1): Rename current_namespace to processing_current_namespace. (read_namespace): Ditto. * buildsym.h: New variable processing_current_namespace. * block.h: Declarations for block_scope and block_set_scope. * block.c (block_scope): New function. (block_set_scope): New function. * cp-support.h (struct namespace_info): Add 'scope' member. * buildsym.c (finish_block): Replace BLOCK_USING by block_set_using. (end_symtab): Ditto. * block.h: Declaration for block_set_using. * block.c (block_set_using): New function. (block_initialize_namespace): New function. * symtab.c (lookup_symbol_aux_using): Replace BLOCK_USING by block_using. * buildsym.c (finish_block): Set BLOCK_NAMESPACE to NULL, not BLOCK_USING. * jv-lang.c (get_java_class_symtab): Ditto. * block.h: Declaration for block_using. * block.c (block_using): New function. * Makefile.in (block.o): New rule; also add block.c to SFILES and block.o to COMMON_OBS. * block.c: New file. * symtab.c (contained_in): Move to block.c. (block_function): Ditto. * block.h (struct block): Have the language-specific stuff contain a struct namespace_info. (BLOCK_NAMESPACE): New macro. (BLOCK_USING): Delete. * linespec.c (decode_variable): Add comment before decode_variable. * cp-support.h (struct namespace_info): New struct.
2002-11-072002-11-06 David Carlton <carlton@math.stanford.edu>David Carlton3-690/+910
* linespec.c: Delete declaration of operator_chars. * symtab.c (lookup_symbol_aux): Add comment. * linespec.c: Update copyright notice. (examine_compound_token): Rename from dl1_examine_compound_token. Misc. cleanups. (locate_class_sym): Rename from dl1_locate_class_sym. (decode_compound): Misc. cleanup. (symbol_found): Rename from dl1_symbol_found; misc. cleanup. (find_next_token): Rename from dl1_find_next_token; misc. cleanup. (find_method): Rename from dl1_find_method. Delete sym_arr argument. Misc. cleanup. (count_methods): Rename from dl1_find_method. Reorder arguments to match find_methods. Misc. cleanup. (find_method_name): New function. (add_matching_methods): New function. (add_constructors): New fnuction. (find_methods): Separate out some of code into find_method_name, add_matching_methods, and add_constructors; misc. cleanup. (is_all_digits): Rename from dl1_is_all_digits. (decode_all_digits): Rename from dl1_all_digits. Don't set defaults: we already did that in initialize_defaults. (skip_digits): Rename from dl1_skip_digits. (handle_filename): Rename from dl1_handle_filename; misc. cleanup. (minsym_found): Rename from dl1_minsym_found; misc. cleanup. (decode_dollar): Rename from dl1_decode_dollar; misc. cleanup. (build_canonical_line_spec): Misc. cleanup. (find_toplevel_char): Move; change 0 to NULL. (decode_variable): Rename from dl1_variable; misc. cleanup. (select_symbols): Rename from decode_line_2; misc. cleanup; fork out some code into select_symbols_args. (select_symbols_args): New function. (decode_line_1): Misc. cleanup.
2002-11-052002-11-04 David Carlton <carlton@math.stanford.edu>David Carlton2-228/+262
* linespec.c (initialize_defaults): Rename from dl1_initialize_defaults. (set_flags): Rename from dl1_set_flags. (decode_line_1): Set flags before decoding indirect. (decode_indirect): Rename from dl1_indirect. (set_flags): Miscellaneous cleanup. (decode_indirect): Miscellaneous cleanup. Move around some functions and declarations.
2002-11-022002-11-01 David Carlton <carlton@math.stanford.edu>David Carlton2-452/+485
* linespec.c (dl1_set_flags): Change arguments. (dl1_compound): Rename from dl1_multipart_compound, and shuffle components. (dl1_examine_compound_token): Change call structure. (dl1_find_method): Ditto. (dl1_handle_filename): Ditto. (dl1_is_all_digits): New function. (dl1_all_digits): Ditto. (dl1_skip_digits): Ditto. (dl1_dollar): Ditto. (dl1_variable): Ditto. (dl1_symbol_found): Ditto. (dl1_minsym_found): Ditto. (decode_line_1): Slim down dramatically.
2002-11-012002-10-31 David Carlton <carlton@math.stanford.edu>David Carlton2-265/+468
* linespec.c (dl1_handle_multipart): New function. (dl1_multipart_compound): Ditto. (dl1_examine_compound_token): Ditto. (dl1_locate_class_sym): Ditto. (dl1_find_next_token): Ditto. (dl1_find_method): Ditto. (dl1_count_methods): Ditto. (dl1_handle_filename): Ditto. (decode_line_1): Call dl1_handle_multipart. (cplusplus_error): Declare to be NORETURN. Also, my previous change on the branch should have mentioned: 2002-10-25 David Carlton <carlton@math.stanford.edu> * ada-lang.c (standard_lookup): Set last argument to lookup_symbol to NULL. * p-valprint.c (pascal_val_print): Ditto. * objc-lang.c (find_imps): Ditto. * c-valprint.c (c_val_print): Ditto.
2002-10-292002-10-28 David Carlton <carlton@math.stanford.edu>David Carlton7-299/+365
* linespec.c (dl1_initialize_defaults): New function. (dl1_indirect): Ditto. (dl1_set_flags): Ditto. (dl1_locate_first_half): Ditto. (decode_line_1): Call the above functions. * symtab.c (lookup_symbol_aux_minsyms): Add block_index argument, and delete is_a_field_of_this argument. (lookup_symbol_aux_nonlocal): Add call to lookup_symbol_aux_minsyms, and expand HP comment. (lookup_symbol_aux): Delete calls to lookup_symbol_aux_minsyms. Expand on comment before lookup_transparent_type.
2002-10-252002-10-25 David Carlton <carlton@math.stanford.edu>David Carlton166-2528/+4132
* symtab.c (lookup_symbol_aux_block): New function. (lookup_symbol_aux_local): Call lookup_symbol_aux_block. (lookup_symbol_aux): Ditto. * Merge from mainline; tag is carlton_dictionary-20021025-merge. 2002-10-25 David Carlton <carlton@math.stanford.edu> * cp-support.c: Add comment to demangled name pitfalls. * symtab.c (lookup_transparent_type): Add FIXME comment at beginning. 2002-10-23 David Carlton <carlton@math.stanford.edu> * symtab.c: Delete cplusplus_hint. Delete prototype for find_template_name_end. * dwarf2read.c (scan_partial_symbols): Add in a gdb_assert from a later version of my namespace_minimal patch. 2002-10-25 David Carlton <carlton@math.stanford.edu> * gdb.c++/namespace.exp: Change all of the setup_xfail tests that I added into setup_kfails.
2002-10-222002-10-22 David Carlton <carlton@math.stanford.edu>David Carlton4-40/+76
* dwarf2read.c (scan_partial_symbols): Clarify some comments. * symtab.c (lookup_symbol_aux): Always call lookup_symbol_aux_using to search global symtabs/psymtabs. (lookup_symbol_aux_local): Add static_block argument. * buildsym.c (add_symbol_to_list): Do a quick scan for "(anonymous namespace)" before calling scan_for_anonymous_namespaces. (scan_for_anonymous_namespaces): Delete FIXME comment.
2002-10-22This commit was manufactured by cvs2svn to create branchnobody3-0/+159
'carlton_dictionary-branch'. Cherrypick from master 2002-10-22 01:43:37 UTC Daniel Jacobowitz <drow@false.org> ' * gdb.asm/asm-source.exp: Add "mips*-*" pattern. Update line': bfd/elf32-qnx.c gdb/config/i386/obsd.mt gdb/testsuite/gdb.asm/mips.inc
2002-10-222002-10-21 David Carlton <carlton@math.stanford.edu>David Carlton6-8/+17
* buildsym.c (add_symbol_to_list): Expand comment. * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END. * Makefile.in (x86-64-tdep.o): Depend on block_h. * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END and SYMBOL_BLOCK_VALUE.
2002-10-20This commit was manufactured by cvs2svn to create branchnobody1-0/+122
'carlton_dictionary-branch'. Cherrypick from gdb_5_3-branch 2002-10-20 11:54:41 UTC nobody 'This commit was manufactured by cvs2svn to create branch 'gdb_5_3-branch'.': gdb/i386obsd-tdep.c
2002-10-182002-10-18 David Carlton <carlton@math.stanford.edu>David Carlton42-185/+414
* Makefile.in (block_h): New variable. Updated dependencies to reflect it. * parse.c (parse_exp_1): Use BLOCK_START. #include "block.h" * p-exp.tab.c: Regenerated. * m2-exp.tab.c: Ditto. * jv-exp.tab.c: Ditto. * f-exp.tab.c: Ditto. * c-exp.tab.c: Ditto. * ada-exp.tab.c: Ditto. * ada-lang.c: #include "block.h" * p-exp.y: Ditto. * objc-exp.y: Ditto. * m2-exp.y: Ditto. * jv-exp.y: Ditto. * f-exp.y: Ditto. * c-exp.y: Ditto. * ada-exp.y: Ditto. * values.c: Ditto. * valops.c: Ditto. * tracepoint.c: Ditto. * symtab.c: Ditto. * symmisc.c: Ditto. * symfile.c: Ditto. * stack.c: Ditto. * printcmd.c: Ditto. * objfiles.c: Ditto. * objc-lang.c: Ditto. * nlmread.c: Ditto. * mips-tdep.c: Ditto. * mdebugread.c: Ditto. * linespec.c: Ditto. * jv-lang.c: Ditto. * infcmd.c: Ditto. * f-valprint.c: Ditto. * findvar.c: Ditto. * expprint.c: Ditto. * coffread.c: Ditto. * buildsym.c: Ditto. * breakpoint.c: Ditto. * blockframe.c: Ditto. * ax-gdb.c: Ditto. * alpha-tdep.c: Ditto. * block.h: New file. * symtab.h: Moved struct block, struct blockvector, and related macros and function declarations to block.h. * dwarf2read.c (process_die): Set processing_has_namespace_info if we run into DW_TAG_namespace, DW_TAG_imported_declaration, or DW_TAG_imported_module. New variable current_namespace. (psymtab_to_symtab_1): Set current_namespace to "". (dwarf2_name): New function. (dwarf2_add_member_fn): Get name via dwarf2_name. (read_typedef): Ditto. (read_file_scope): Ditto. (dwarf2_add_field): Ditto. (read_structure_scope): Ditto. (read_enumeration): Ditto. (dwarf2_extension): New function. (read_namespace): Set current_namespace correctly; also, if we're entering an anonymous namespace, add an appropriate using directive. * buildsym.c (start_symtab): Reset processing_has_namespace_info to 0. (add_symbol_to_list): Only scan for anonymous namespaces if !processing_has_namespace_info. * buildsym.h: Add new flag processing_has_namespace_info. 2002-10-18 David Carlton <carlton@math.stanford.edu> * mi-cmd-stack.c: #include "block.h"
2002-10-182002-10-16 David Carlton <carlton@math.stanford.edu>David Carlton5-16/+238
* dwarf2read.c (dwarf_tag_name): Add DWARF 3 names. (dwarf_attr_name): Ditto. (dwarf_type_encoding_name): Ditto. (scan_partial_symbols): Descend into DW_TAG_namespace entries. (process_die): Handle DW_TAG_namespace, DW_TAG_imported_declaration, DW_TAG_imported_module. (read_namespace): New function. 2002-10-17 David Carlton <carlton@math.stanford.edu> * gdb.c++/namespace.cc: Add namespace renaming, using directives, and using declarations. * gdb.c++/namespace.exp: Add some xfails, including namespace renaming, using directives, and using declarations.
2002-10-152002-10-15 David Carlton <carlton@math.stanford.edu>David Carlton9-47/+180
* symtab.c (lookup_symbol_aux_using_loop): prefix_len should be <= outer_length. (lookup_symbol_aux_using_loop): Don't skip colons in rest_of_outer if we've used all of outer. * cp-support.h: Rename declaration of cp_add_using to cp_add_using_obstack. * cp-support.c (cp_add_using_obstack): Rename from cp_add_using. * buildsym.h: Rename arguments in declaration of add_using_directive. * buildsym.c (add_using_directive): Finish definition, rename arguments. * cp-support.h: Add declaration for cp_add_using_xmalloc. * cp-support.c (cp_add_using_xmalloc): New function. * buildsym.c (copy_usings_to_obstack): New function. (end_symtab): Set STATIC_BLOCK's BLOCK_USING using copy_usings_to_obstack. 2002-10-15 David Carlton <carlton@math.stanford.edu> * gdb.c++/namespace.exp: Add anonymous namespace tests. * gdb.c++/namespace.cc: Add anonymous namespaces.
2002-10-152002-10-14 David Carlton <carlton@math.stanford.edu>David Carlton6-49/+176
* buildsym.c (add_using_directive): Rewrite to match new version of struct using_direct. (finish_block): Ditto. * symtab.c (lookup_symbol_aux_using_loop): Add 'prefix_len' argument; rewrite to match new version of struct using_direct. * cp-support.h: Update declaration for cp_add_using. * cp-support.c (cp_add_using): Rewrite to match new version of struct using_direct. * cp-support.h (struct using_direct): Rewrite struct. * buildsym.h: Declaration for add_using_directive. * buildsym.c: New variable 'using_list'. (start_symtab): Initialize using_list. (end_symtab): Initialize BLOCK_USING of STATIC_BLOCK. (scan_for_anonymous_namespaces): New function. (add_symbol_to_list): In C++ case, look for anonymous namespaces. (add_using_directive): New function.
2002-10-11Merge with mainline; merge tag carlton_dictionary-20021011-merge.David Carlton163-6400/+3470