2004-02-02 David Carlton <carlton@kealia.com>
authorDavid Carlton <carlton@bactrian.org>
Mon, 2 Feb 2004 20:44:53 +0000 (20:44 +0000)
committerDavid Carlton <carlton@bactrian.org>
Mon, 2 Feb 2004 20:44:53 +0000 (20:44 +0000)
commit8d577d328a1339e8b7107206c058b852e083f16b
tree25cd70f71ea631c6f5805f9e1aa5478b34d3c203
parent15390fef31f1aa09ab3da757a878d047305d7e5c
2004-02-02  David Carlton  <carlton@kealia.com>

* valops.c (enum oload_classification): New.
(find_overload_match): Break implementation into separate
functions; delete #if 0'd code; look for symbols within
namespaces.
(find_oload_champ_namespace,find_oload_champ_namespace_loop)
(find_oload_champ,oload_method_static,classify_oload_match): New.
* cp-support.h: Add declaration for cp_func_name; update
declaration for make_symbol_overload_list.
* cp-support.c (cp_func_name): New.
(overload_list_add_symbol): Fix comment, use
SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
(make_symbol_overload_list): Take a function name and a namespace
instead of a symbol; change implementation.
(make_symbol_overload_list_using): New.
(make_symbol_overload_list_qualified, read_in_psymtabs): New.

2004-02-02  David Carlton  <carlton@kealia.com>

* gdb.cp/overload.exp: Add overloadNamespace tests.
* gdb.cp/overload.cc (dummyClass, dummyInstance): New.
(overloadNamespace, XXX): New.
(main): Call XXX::marker2.
gdb/ChangeLog
gdb/cp-support.c
gdb/cp-support.h
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/overload.cc
gdb/testsuite/gdb.cp/overload.exp
gdb/valops.c