old-cross-binutils/gdb/testsuite/gdb.cp
Keith Seitz 8dea366bbe PR c++/13615
* cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
	parameter and pass it to lookup_symbol_file.
	(cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
	to search base classes.
	(cp_lookup_symbol_namespace): Likewise.
	(lookup_namespace_scope): Likewise.
	(lookup_symbol_file): Add SEARCH parameter.
	If SEARCH is non-zero and no symbol is found, lookup the class
	and call cp_lookup_nested_symbol.
	(find_symbol_in_baseclass): New function.
	(cp_lookup_nested_symbol): Do not let
	cp_lookup_symbol_in_namespace search through base classes.
	Do that later when there is no global symbol match.

	PR c++/13615
	* gdb.cp/baseenum.cc: New file.
	* gdb.cp/baseenum.exp: New file.
	* gdb.cp/derivation.cc (A): Add copyright.
	Add a typedef.
	(B): Use A::value_type instead of int.  Change all references.
	(D): Use value_type instead of int.  Change all references.
	(E): Likewise.
	(F); Likewise.
	(Z): New class.
	(ZZ): New class.
 	(N, Base, Derived): New namespace and classes.
	(main): Add instances of Z and ZZ.
	Make sure all symbols from N are kept.
	* gdb.cp/derivation.exp: Update typedef changes in tests.
	Add tests for class typedefs both before and after starting
	the inferior.
	Add tests for searching for a typedef while stopped in a
	method.
2012-11-16 20:54:30 +00:00
..
abstract-origin.cc
abstract-origin.exp
ambiguous.cc
ambiguous.exp
annota2.cc
annota2.exp
annota3.cc
annota3.exp
anon-ns.cc
anon-ns.exp
anon-struct.cc
anon-struct.exp
anon-union.cc
anon-union.exp
arg-reference.cc
arg-reference.exp
baseenum.cc PR c++/13615 2012-11-16 20:54:30 +00:00
baseenum.exp PR c++/13615 2012-11-16 20:54:30 +00:00
bool.cc
bool.exp
breakpoint.cc
breakpoint.exp
bs15503.cc
bs15503.exp
call-c-1.c
call-c.cc
call-c.exp
casts.cc PR exp/13206: 2012-07-19 15:38:18 +00:00
casts.exp PR exp/13206: 2012-07-19 15:38:18 +00:00
class2.cc
class2.exp
classes.cc
classes.exp * gdb.cp/classes.exp (test_ptype_class_objects): Remove 2012-11-12 17:08:09 +00:00
cmpd-minsyms.cc
cmpd-minsyms.exp
converts.cc gdb/testsuite/ 2012-09-16 17:30:48 +00:00
converts.exp PR gdb/13483 2012-09-10 17:12:53 +00:00
cp-relocate.cc
cp-relocate.exp
cpcompletion.exp
cpexprs.cc
cpexprs.exp
cplabel.cc
cplabel.exp
cplusfuncs.cc
cplusfuncs.exp
ctti.exp
cttiadd.cc
cttiadd1.cc
cttiadd2.cc
cttiadd3.cc
debug-expr.exp * eval.c (evaluate_subexp_standard): Fix thinko in handling 2012-08-08 21:17:04 +00:00
demangle.exp
derivation.cc PR c++/13615 2012-11-16 20:54:30 +00:00
derivation.exp PR c++/13615 2012-11-16 20:54:30 +00:00
destrprint.cc
destrprint.exp
dispcxx.cc
dispcxx.exp
exception.cc
exception.exp
expand-psymtabs-cxx.cc
expand-psymtabs-cxx.exp
expand-sals.cc
expand-sals.exp
extern-c.cc
extern-c.exp
formatted-ref.cc
formatted-ref.exp
fpointer.cc
fpointer.exp
gdb1355.cc
gdb1355.exp
gdb2384-base.cc
gdb2384-base.h
gdb2384.cc
gdb2384.exp
gdb2495.cc
gdb2495.exp
hang.exp
hang.H
hang1.cc
hang2.cc
hang3.cc
infcall-dlopen-lib.cc
infcall-dlopen.cc
infcall-dlopen.exp
inherit.exp * gdb.cp/classes.exp (test_ptype_class_objects): Remove 2012-11-12 17:08:09 +00:00
koenig.cc
koenig.exp
local.cc
local.exp
m-data.cc
m-data.exp
m-static.cc
m-static.exp
m-static.h
m-static1.cc
maint.exp
Makefile.in
mb-ctor.cc
mb-ctor.exp
mb-inline.exp * gdb.cp/mb-inline.exp: Do "info break" after setting multi-location 2012-09-11 21:37:04 +00:00
mb-inline.h
mb-inline1.cc
mb-inline2.cc
mb-templates.cc
mb-templates.exp
member-ptr.cc
member-ptr.exp
meth-typedefs.cc
meth-typedefs.exp
method.cc
method.exp
method2.cc
method2.exp
minsym-fallback-main.cc
minsym-fallback.cc
minsym-fallback.exp
minsym-fallback.h
misc.cc
misc.exp
namespace-enum-main.cc
namespace-enum.cc
namespace-enum.exp
namespace-nested-import.cc
namespace-nested-import.exp
namespace.cc
namespace.exp
namespace1.cc
nextoverthrow.cc
nextoverthrow.exp * lib/gdb.exp (skip_unwinder_tests): New proc. 2012-08-22 14:27:49 +00:00
no-dmgl-verbose.cc
no-dmgl-verbose.exp
noparam.cc
noparam.exp
nsdecl.cc
nsdecl.exp
nsimport.cc
nsimport.exp
nsnested.cc
nsnested.exp
nsnoimports.cc
nsnoimports.exp
nsrecurs.cc
nsrecurs.exp
nsstress.cc
nsstress.exp
nsusing.cc
nsusing.exp
operator.cc
operator.exp
oranking.cc
oranking.exp
overload-const.cc
overload-const.exp
overload.cc
overload.exp
ovldbreak.cc
ovldbreak.exp
ovsrch.exp
ovsrch.h
ovsrch1.cc
ovsrch2.cc
ovsrch3.cc
ovsrch4.cc
paren-type.cc
paren-type.exp
pass-by-ref.cc
pass-by-ref.exp
pr-574.cc
pr-574.exp
pr-1023.cc
pr-1023.exp
pr-1210.cc
pr-1210.exp
pr9067.cc
pr9067.exp
pr9167.cc
pr9167.exp
pr9594.cc
pr9631.cc
pr9631.exp
pr10687.cc
pr10687.exp
pr10728-x.cc
pr10728-x.h
pr10728-y.cc
pr10728.exp
pr12028.cc
pr12028.exp
printmethod.cc
printmethod.exp
psmang.exp
psmang1.cc
psmang2.cc
psymtab-parameter.cc
psymtab-parameter.exp
ptype-cv-cp.cc
ptype-cv-cp.exp
ptype-flags.cc * c-typeprint.c (find_typedef_for_canonicalize, 2012-11-12 17:37:38 +00:00
ptype-flags.exp * c-typeprint.c (find_typedef_for_canonicalize, 2012-11-12 17:37:38 +00:00
punctuator.exp
re-set-overloaded.cc
re-set-overloaded.exp
readnow-language.cc
readnow-language.exp
ref-params.cc
ref-params.exp
ref-types.cc
ref-types.exp
rtti.exp
rtti.h
rtti1.cc
rtti2.cc
shadow.cc
shadow.exp
smartp.cc
smartp.exp
static-method.cc
static-method.exp
static-print-quit.cc
static-print-quit.exp
temargs.cc
temargs.exp
templates.cc
templates.exp * c-typeprint.c (find_typedef_for_canonicalize, 2012-11-12 17:37:38 +00:00
try_catch.cc
try_catch.exp
typedef-operator.cc
typedef-operator.exp
userdef.cc
userdef.exp
using-crash.cc PR symtab/14601 2012-10-03 17:05:00 +00:00
using-crash.exp PR symtab/14601 2012-10-03 17:05:00 +00:00
virtbase.cc
virtbase.exp
virtfunc.cc
virtfunc.exp * gdb.cp/classes.exp (test_ptype_class_objects): Remove 2012-11-12 17:08:09 +00:00
virtfunc2.cc
virtfunc2.exp