diff options
author | David Carlton <carlton@bactrian.org> | 2004-02-02 20:44:53 +0000 |
---|---|---|
committer | David Carlton <carlton@bactrian.org> | 2004-02-02 20:44:53 +0000 |
commit | 8d577d328a1339e8b7107206c058b852e083f16b (patch) | |
tree | 25cd70f71ea631c6f5805f9e1aa5478b34d3c203 /gdb/cp-support.h | |
parent | 15390fef31f1aa09ab3da757a878d047305d7e5c (diff) | |
download | gdb-8d577d328a1339e8b7107206c058b852e083f16b.zip gdb-8d577d328a1339e8b7107206c058b852e083f16b.tar.gz gdb-8d577d328a1339e8b7107206c058b852e083f16b.tar.bz2 |
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.
Diffstat (limited to 'gdb/cp-support.h')
-rw-r--r-- | gdb/cp-support.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/cp-support.h b/gdb/cp-support.h index 49da26c..bbf911a 100644 --- a/gdb/cp-support.h +++ b/gdb/cp-support.h @@ -60,7 +60,10 @@ extern unsigned int cp_find_first_component (const char *name); extern unsigned int cp_entire_prefix_len (const char *name); -extern struct symbol **make_symbol_overload_list (struct symbol *); +extern char *cp_func_name (const char *full_name); + +extern struct symbol **make_symbol_overload_list (const char *, + const char *); extern struct type *cp_lookup_rtti_type (const char *name, struct block *block); |