Michael Chastain
dd8c8ee780
2004-08-15 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/ctti.exp: Tweak srcfile and objfile to have no slashes.
* gdb.cp/m-static.exp: Likewise.
* gdb.cp/rtti.exp: Likewise.
2004-08-15 09:17:30 +00:00
Michael Chastain
2580899957
2004-08-13 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/inherit.exp: Use cp_test_ptype_class.
2004-08-13 10:24:52 +00:00
Michael Chastain
226a8d71a3
2004-08-13 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/classes.exp: Remove unused declarations. Just let
test names default instead of providing special names. Remove
extraneous demangler test.
2004-08-13 08:48:46 +00:00
Michael Chastain
2d3a79861d
2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/classes.exp (test_ptype_class_objects): Call
cp_test_ptype_class.
(test_enums): Likewise.
2004-08-12 18:51:41 +00:00
Michael Chastain
78c9050252
2004-08-09 Michael Chastain <mec.gnu@mindspring.com>
...
* lib/cp-support.exp: New file.
* lib/cp-support.exp (cp_test_type_class): New function.
* gdb.cp/derivation.exp: Use cp_test_ptype_class.
* gdb.cp/virtfunc.exp (test_one_ptype): Removed.
* gdb.cp/virtfunc.exp (test_ptype_of_classes): Use
cp_test_ptype_class.
2004-08-09 22:47:50 +00:00
Daniel Jacobowitz
54d90d3515
* gdb.cp/templates.exp: Handle (char)115 for template argument 's'.
2004-08-09 13:15:26 +00:00
Michael Chastain
c203e0ca36
2004-07-31 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/namespace.exp: Accept more varieties of ptype output.
2004-08-01 01:03:47 +00:00
Michael Chastain
a7995a30f3
2004-07-31 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/virtfunc.exp: Accept more varieties of ptype output.
2004-07-31 10:48:01 +00:00
Michael Chastain
9366563b11
2004-07-31 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/classes.exp: Accept more varieties of ptype output.
Accept more values of vtbl pointer. Remove some messages
about "obsolete gcc or gdb".
2004-07-31 09:50:12 +00:00
Michael Chastain
2fc1f95015
2004-07-30 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/classes.exp: Accept more varieties of ptype output.
2004-07-31 07:45:35 +00:00
Michael Chastain
44ae2f6a11
2004-07-06 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/templates.exp: Accept whitespace change in demangler
output.
2004-07-06 19:36:10 +00:00
Michael Chastain
d931ba3b35
2004-06-23 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/pr-1553.exp: Remove.
2004-06-23 18:36:51 +00:00
Michael Chastain
aef68c4869
2004-06-22 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/pr-1553.cc: Remove.
* gdb.cp/pr-1553.exp: Disable this test.
2004-06-22 18:17:54 +00:00
Michael Chastain
6daa6ebd43
2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/pr-574.cc: Add copyright notice.
2004-06-18 14:24:54 +00:00
Michael Chastain
8fea26c5a5
2004-06-17 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/printmethod.cc: Add copyright notice.
2004-06-17 18:30:18 +00:00
Michael Chastain
1e3aeb41f2
2004-06-16 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/psmang1.cc, gdb.cp/psmang2.cc: Add copyright notice.
2004-06-17 04:28:22 +00:00
Michael Chastain
ef220b3362
2004-06-14 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/ref-types.cc: Add copyright notice.
2004-06-14 16:30:16 +00:00
Michael Chastain
335928accd
2004-06-13 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/try_catch.cc: Add copyright notice.
2004-06-13 16:07:02 +00:00
Michael Chastain
2efb12e85b
2004-06-12 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/userdef.cc: Add copyright notice.
2004-06-12 16:45:49 +00:00
Michael Chastain
0bbed51abe
2004-06-11 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/virtfunc.cc: Add copyright notice.
2004-06-12 01:20:50 +00:00
David Carlton
23c73aa3b7
2004-03-17 David Carlton <carlton@kealia.com>
...
* gdb.cp/classes.exp (test_enums): Refer to PR c++/1588 instead of
PR c++/826.
2004-03-17 20:11:22 +00:00
David Carlton
0e02aa5022
2004-03-12 David Carlton <carlton@kealia.com>
...
* gdb.cp/pr-1553.exp: New. Tests for PR c++/1553.
* gdb.cp/pr-1553.cc: Ditto.
* gdb.cp/local.exp (ptype NestedInnerLocal): Add comment, third
pass branch.
2004-03-12 17:46:27 +00:00
Michael Chastain
c20b71be64
2004-03-12 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/templates.exp: Accept more template types.
2004-03-12 16:40:07 +00:00
Michael Chastain
c7414a01d5
2004-03-09 Michael Chastain <mec.gnu@mindspring.com>
...
From Corinna Vinschen with modifications.
* gdb.cp/classes.cc (enums1): Add a line to extend scope of
local variable obj_with_enum.
* gdb.cp/classes.exp (test_enums): Remove TODO note about FAIL
results with obj_with_enum.
2004-03-09 17:34:39 +00:00
Michael Chastain
ed69573cd5
2004-03-09 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/classes.cc: New file, copied from misc.cc.
* gdb.cp/classes.exp: Use classes.cc rather than misc.cc.
2004-03-09 17:11:55 +00:00
Michael Chastain
283014616e
2004-03-09 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/misc.cc: Add copyright notice.
2004-03-09 17:02:06 +00:00
David Carlton
1198ecbe71
2004-03-05 David Carlton <carlton@kealia.com>
...
* cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
bug.
2004-03-05 David Carlton <carlton@kealia.com>
* gdb.cp/rtti.exp: Add 'print *obj3' test.
* gdb.cp/rtti.h: Update copyright.
(namespace n2::n3): New.
* gdb.cp/rtti1.cc: (refer_to (n2::n3::C3 *)): New.
(n2::n3::func3): New.
(main): Call n2::n3::func3.
* gdb.cp/rtti2.cc: Update copyright.
(n2::create3): New.
2004-03-05 17:32:25 +00:00
Daniel Jacobowitz
6ea9fb3712
* gdb.cp/ctti.exp: Handle unsigned char type. Expect templates
...
to use unsigned char.
* gdb.cp/cttiadd.c, gdb.cp/cttiadd1.c, gdb.cp/cttiadd2.c,
gdb.cp/cttiadd3.c: Change type of variable to unsigned char.
2004-02-29 22:29:15 +00:00
Joel Brobecker
98f9cd2d31
* gdb.cp/class2.cc (empty): New class.
...
(refer): New function.
(main): Declare an object of type empty and use it.
* gdb.cp/class2.exp: Print the value of an object of type empty.
2004-02-26 20:22:44 +00:00
David Carlton
87b3ede8af
2004-02-11 David Carlton <carlton@kealia.com>
...
* linespec.c (decode_compound): Only look for a class symbol when
considering all but the rightmost component.
2004-02-11 David Carlton <carlton@kealia.com>
* gdb.cp/breakpoint.exp: New.
* gdb.cp/breakpoint.cc: New.
2004-02-11 18:04:14 +00:00
Michael Chastain
6e19e2bf78
2004-02-11 Michael Chastain <mec.gnu@mindspring.com>
...
Partial fix for PR gdb/1543.
* gdb.cp/ambiguous.exp, gdb.cp/annota2.exp, gdb.cp/annota3.exp,
gdb.cp/anon-union.exp, gdb.cp/casts.exp, gdb.cp/classes.exp,
gdb.cp/cplusfuncs.exp, gdb.cp/ctti.exp, gdb.exp/demangle.exp,
gdb.cp/derivation.exp, gdb.cp/exception.exp, gdb.cp/hang.exp,
gdb.cp/inherit.exp, gdb.cp/local.exp, gdb.cp/maint.exp,
gdb.cp/member-ptr.exp, gdb.cp/method.exp, gdb.cp/misc.exp,
gdb.cp/namespace.exp, gdb.cp/overload.exp, gdb.cp/ovldbreak.exp,
gdb.cp/psmang.exp, gdb.cp/ref-types.exp, gdb.cp/templates.exp,
gdb.cp/userdef.exp, gdb.cp/virtfunc.exp: Remove reference
to bug-gdb@prep.ai.mit.edu .
* gdb.cp/bs15503.cc, gdb.cp/class2.cc, gdb.cp/cttiadd.cc,
gdb.cp/cttiadd1.cc, gdb.cp/cttiadd2.cc, gdb.cp/cttiadd3.cc,
gdb.cp/exception.cc, gdb.cp/member-ptr.cc, gdb.cp/namespace1.cc:
Likewise.
2004-02-11 14:01:25 +00:00
Michael Chastain
aaa08ee402
2004-02-03 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/virtfunc.exp: Accept both "ctor()" and "ctor(void)".
2004-02-04 04:18:45 +00:00
Michael Chastain
dbad775550
2004-02-03 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/inherit.exp: Accept both "ctor()" and "ctor(void)".
2004-02-04 04:04:25 +00:00
Michael Chastain
ec4646ef4d
2004-02-03 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/inherit.exp: Accept output with gcc 3.2-7-rh.
2004-02-04 02:01:17 +00:00
David Carlton
8d577d328a
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.
2004-02-02 20:44:53 +00:00
Michael Chastain
ebac27b4c3
2004-01-29 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/inherit.exp: Rewrite. Use gdb_test_multiple and gdb
for all tests. Remove old hp-ux and cygnus xfail cases.
2004-01-30 01:37:42 +00:00
Michael Chastain
0a55bc2299
2004-01-24 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/local.exp: Rewrite "ptype Local". Add "ptype l".
Provide arms for current output in all my configurations.
2004-01-27 02:43:35 +00:00
David Carlton
b368761e45
2004-01-23 David Carlton <carlton@kealia.com>
...
Partial workaround for PR c++/1511:
* cp-namespace.c: Include frame.h.
(cp_lookup_transparent_type): New
(cp_lookup_transparent_type_loop): New.
* cp-support.h: Declare cp_lookup_transparent_type.
* symtab.c (basic_lookup_transparent_type): Renamed from
lookup_transparent_type.
(lookup_transparent_type): Replace old body by a call to
current_language->la_lookup_transparent_type.
* symtab.h: Update copyright. Declare
basic_lookup_transparent_type.
* language.h: Update copyright.
(struct language_defn): Add la_lookup_transparent_type.
* language.c: Update copyright.
(unknown_language_defn): Add basic_lookup_transparent_type.
(auto_language_defn): Add basic_lookup_transparent_type.
(local_language_defn): Add basic_lookup_transparent_type.
* ada-lang.c: Update copyright.
(ada_language_defn): Add basic_lookup_transparent_type.
* c-lang.c: Update copyright.
(c_language_defn): Add basic_lookup_transparent_type.
(cplus_language_defn): Add basic_lookup_transparent_type.
(asm_language_defn): Add basic_lookup_transparent_type.
(minimal_language_defn): Add basic_lookup_transparent_type.
* f-lang.c: Update copyright.
(f_language_defn): Add basic_lookup_transparent_type.
* jv-lang.c: Update copyright.
(java_language_defn): Add basic_lookup_transparent_type.
* m2-lang.c: Update copyright.
(m2_language_defn): Add basic_lookup_transparent_type.
* objc-lang.c: Update copyright.
(objc_language_defn): Add basic_lookup_transparent_type.
* p-lang.c: Update copyright.
(p_language_defn): Add basic_lookup_transparent_type.
* scm-lang.c: Update copyright.
(scm_language_defn): Add basic_lookup_transparent_type.
* Makefile.in (cp-namespace.o): Depend on frame.h.
2004-01-23 David Carlton <carlton@kealia.com>
* gdb.cp/rtti.exp: Don't include full path in ${srcfile}. Add
test for cp_lookup_transparent_type.
* gdb.cp/rtti1.cc: Update copyright. Add n2::func and refer_to;
call them.
2004-01-23 23:03:31 +00:00
David Carlton
37fc574aa0
2004-01-23 David Carlton <carlton@kealia.com>
...
* gdb.cp/namespace.cc (C::ensureRefs): New.
* gdb.cp/namespace1.cc (C::ensureOtherRefs): New.
2004-01-23 21:55:57 +00:00
Michael Chastain
997b095265
2004-01-18 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/local.exp: Accept correct output for gcc v3 -gstabs+.
2004-01-19 04:06:42 +00:00
Michael Chastain
32c70722c3
2004-01-17 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/templates.exp: Accept more spaces with "<foo, ?bar>"
type patterns.
2004-01-18 04:18:56 +00:00
Michael Chastain
b0cecf36fd
2004-01-17 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/templates.exp: Fix typo in test name of
"print Foo<volatile char*>::foo".
2004-01-18 03:33:22 +00:00
David Carlton
3e5fc8d240
2004-01-14 David Carlton <carlton@bactrian.org>
...
* gdb.cp/rtti.exp: Update copyright. KFAIL test with repect to
PR c++/1511 and update coment.
* gdb.cp/templates.exp: Update patterns to match current output.
If changes involve something other than whitespace, KFAIL
w.r.t. PR c++/1512 or PR c++/931 as appropriate.
2004-01-14 19:03:32 +00:00
David Carlton
63d06c5c42
2004-01-14 David Carlton <carlton@kealia.com>
...
Change symbols for C++ nested types to contain the fully qualified
name, if possible. (At least in the DWARF-2 case.) Partial fix
for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
c++/895.
* c-exp.y: Update copyright:
(qualified_type): Handle types nested within classes.
* cp-namespace.c: Update comments.
(cp_set_block_scope): Delete #if 0.
(cp_lookup_nested_type): Handle types nested within classes.
* dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
when appropriate.
(add_partial_symbol): Add the name of the enclosing namespace to
types.
(pdi_needs_namespace): New.
(add_partial_namespace): Tweak comment.
(add_partial_structure): New.
(psymtab_to_symtab_1): Initialize processing_current_prefix
here...
(process_die): instead of here.
(read_structure_scope): Try to figure out the name of the class or
namespace that the structure might be defined within.
(read_enumeration): Generate fully-qualified names, if possible.
(read_namespace): Don't set name to NULL.
(die_specification): New.
(new_symbol): Generate fully-qualified names for types.
(read_type_die): Determine appropriate prefix.
(determine_prefix): New.
(typename_concat): New.
(class_name): New.
* valops.c: Update copyright.
(value_aggregate_elt): Pass NOSIDE to
value_struct_elt_for_reference.
(value_struct_elt_for_reference): Make static, add NOSIDE
parameter, call value_maybe_namespace_elt as a last resort.
(value_namespace_elt): Break out code into
value_maybe_namespace_elt.
(value_maybe_namespace_elt): New.
2004-01-14 David Carlton <carlton@kealia.com>
* gdb.cp/namespace.exp: Add tests involving classes defined within
namespaces.
* gdb.cp/namespace.cc (C::CClass): New.
* gdb.cp/namespace1.cc: Update copyright.
(C::OtherFileClass): New.
2004-01-14 16:54:43 +00:00
Michael Chastain
f40063a5ba
2004-01-13 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/derivation.exp: Add XFAIL for bug with protected
inheritance. PR gdb/1498, PR gcc/13539.
2004-01-14 03:57:23 +00:00
Michael Chastain
56c97c6e25
2004-01-12 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/member-ptr.cc: Add copyright notice.
2004-01-13 04:53:00 +00:00
Michael Chastain
a0644324db
2004-01-12 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/member-ptr.exp: Use gdb_test, gdb_test_multiple. Add
some patterns for recent versions of gcc and hpacc. Delete
calls to setup_xfail for hppa*-*-*. Delete redundant tests.
Delete tests that access a NULL pointer-to-member-data. This
script is still disabled for gcc.
2004-01-13 04:36:04 +00:00
Michael Chastain
9939d2a823
2004-01-10 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/classes.exp: Remove old "(obsolescent gcc or gdb)"
decorations.
2004-01-11 09:40:37 +00:00
Michael Chastain
1ff8cadf84
2004-01-10 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/virtfunc.exp: Remove old "(obsolescent gcc or gdb)"
and "(aCC)" decorations. Remove obsolete doco about old
test results.
2004-01-11 08:14:49 +00:00
Michael Chastain
6fa9022e89
2004-01-09 Michael Chastain <mec.gnu@mindspring.com>
...
* gdb.cp/exception.exp: Fix typo in doco.
2004-01-10 00:03:17 +00:00