David Carlton [Tue, 16 Dec 2003 00:01:26 +0000 (00:01 +0000)]
2003-12-15 David Carlton <carlton@kealia.com>
* 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.
David Carlton [Wed, 12 Nov 2003 00:20:59 +0000 (00:20 +0000)]
2003-11-11 David Carlton <carlton@kealia.com>
* 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.
This commit was manufactured by cvs2svn to create branch
'carlton_dictionary-branch'.
Cherrypick from master 2003-09-17 15:42:21 UTC Andrew Cagney <cagney@redhat.com> '2003-09-17 Andrew Cagney <cagney@redhat.com>':
gdb/sh64-tdep.c
gdb/sparc64-tdep.c
gdb/testsuite/gdb.arch/i386-prologue.exp
gdb/testsuite/gdb.asm/sh.inc
opcodes/dis-init.c
David Carlton [Fri, 27 Jun 2003 22:47:33 +0000 (22:47 +0000)]
2003-06-27 David Carlton <carlton@kealia.com>
* 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.
David Carlton [Thu, 12 Jun 2003 18:45:48 +0000 (18:45 +0000)]
2003-06-12 David Carlton <carlton@kealia.com>
* dwarf2read.c (die_specification): New.
(determine_prefix): Fix memory management.
(read_structure_scope): Set prefix correctly if getting type via
specification.
David Carlton [Fri, 16 May 2003 16:10:54 +0000 (16:10 +0000)]
2003-05-16 David Carlton <carlton@bactrian.org>
* 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.
David Carlton [Thu, 1 May 2003 00:46:59 +0000 (00:46 +0000)]
2003-04-30 David Carlton <carlton@bactrian.org>
* 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.
David Carlton [Fri, 18 Apr 2003 18:10:50 +0000 (18:10 +0000)]
2003-04-18 David Carlton <carlton@bactrian.org>
* 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.
David Carlton [Fri, 7 Mar 2003 22:52:55 +0000 (22:52 +0000)]
2003-03-07 David Carlton <carlton@math.stanford.edu>
* 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.
David Carlton [Sat, 1 Feb 2003 01:17:22 +0000 (01:17 +0000)]
2003-01-31 David Carlton <carlton@math.stanford.edu>
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.
David Carlton [Sat, 25 Jan 2003 01:04:31 +0000 (01:04 +0000)]
2003-01-24 David Carlton <carlton@math.stanford.edu>
* 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.
David Carlton [Sat, 11 Jan 2003 01:11:03 +0000 (01:11 +0000)]
2003-01-10 David Carlton <carlton@math.stanford.edu>
* 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.
David Carlton [Wed, 18 Dec 2002 00:45:44 +0000 (00:45 +0000)]
2002-12-17 David Carlton <carlton@math.stanford.edu>
* 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.
David Carlton [Thu, 28 Nov 2002 00:53:26 +0000 (00:53 +0000)]
2002-11-27 David Carlton <carlton@math.stanford.edu>
* 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.
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.
* 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.
David Carlton [Sat, 23 Nov 2002 00:42:55 +0000 (00:42 +0000)]
2002-11-22 David Carlton <carlton@math.stanford.edu>
* 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.
David Carlton [Thu, 21 Nov 2002 01:04:22 +0000 (01:04 +0000)]
2002-11-20 David Carlton <carlton@math.stanford.edu>
* 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.
David Carlton [Sat, 16 Nov 2002 00:16:57 +0000 (00:16 +0000)]
2002-11-15 David Carlton <carlton@math.stanford.edu>
* 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.
David Carlton [Thu, 14 Nov 2002 00:07:54 +0000 (00:07 +0000)]
2002-11-13 David Carlton <carlton@math.stanford.edu>
* 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.
David Carlton [Thu, 7 Nov 2002 00:59:50 +0000 (00:59 +0000)]
2002-11-06 David Carlton <carlton@math.stanford.edu>
* 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.
David Carlton [Tue, 5 Nov 2002 01:22:21 +0000 (01:22 +0000)]
2002-11-04 David Carlton <carlton@math.stanford.edu>
* 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.
David Carlton [Tue, 29 Oct 2002 01:07:47 +0000 (01:07 +0000)]
2002-10-28 David Carlton <carlton@math.stanford.edu>
* 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.
David Carlton [Fri, 25 Oct 2002 23:50:01 +0000 (23:50 +0000)]
2002-10-25 David Carlton <carlton@math.stanford.edu>
* 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.
nobody [Sun, 20 Oct 2002 11:54:42 +0000 (11:54 +0000)]
This commit was manufactured by cvs2svn to create branch
'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-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.
David Carlton [Tue, 15 Oct 2002 23:59:24 +0000 (23:59 +0000)]
2002-10-15 David Carlton <carlton@math.stanford.edu>
* 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>
* 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.