Daniel Jacobowitz
db5a5748d7
* gdb.c++/pr-1210.cc: New file.
...
* gdb.c++/pr-1210.exp: New file.
2003-06-22 15:20:13 +00:00
David Carlton
72fe3d258d
2003-05-20 David Carlton <carlton@math.stanford.edu>
...
* gdb.c++/namespace1.cc: Actually do 'cvs add' before committing
this time.
2003-05-20 22:54:53 +00:00
David Carlton
58da2eb212
2003-05-19 David Carlton <carlton@bactrian.org>
...
* gdb.c++/rtti.exp: New file, containing tests for PR c++/488.
* gdb.c++/rtti.h, gdb.c++/rtti1.cc, gdb.c++/rtti2.cc: Ditto.
2003-05-19 David Carlton <carlton@bactrian.org>
* config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
2003-05-20 04:08:19 +00:00
David Carlton
1fcb515536
2003-05-19 David Carlton <carlton@bactrian.org>
...
Partial fix for PR c++/827.
* cp-support.h: Include symtab.h.
Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
* cp-namespace.c: Update contributors.
(cp_lookup_symbol_nonlocal): New.
(lookup_namespace_scope, cp_lookup_symbol_namespace)
(lookup_symbol_file): Ditto.
* c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
* block.h: Declare block_scope, block_using, block_global_block.
* block.c (block_scope): New.
(block_using, block_global_block): Ditto.
* Makefile.in (cp_support_h): Depend on symtab_h.
* config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
2003-05-19 David Carlton <carlton@bactrian.org>
* gdb.c++/namespace.exp: Add namespace scope and anonymous
namespace tests.
Bump copyright date.
* gdb.c++/namespace.cc: Add anonymous namespace and namespace C.
(main): Call C::D::marker2.
* gdb.c++/namespace1.cc: New file.
2003-05-20 03:56:29 +00:00
David Carlton
0f20eeea6c
2003-04-23 David Carlton <carlton@bactrian.org>
...
* cp-support.c (cp_find_first_component): Accept 'operator' in
more locations.
2003-04-23 David Carlton <carlton@bactrian.org>
* gdb.c++/maint.exp (test_first_component): Add tests for
'operator' in more locations.
2003-04-23 23:45:24 +00:00
David Carlton
9219021cb5
2003-04-15 David Carlton <carlton@math.stanford.edu>
...
* Makefile.in (SFILES): Add cp-namespace.c.
(COMMON_OBS): Add cp-namespace.o.
(block.o): Depend on gdb_obstack_h and cp_support_h.
(buildsym.o): Depend on cp_support_h.
(cp-namespace.o): New.
(cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
(dwarf2read.o): Depend on cp_support_h.
* jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
* dwarf2read.c (process_die): Set processing_has_namespace_info,
processing_current_namespace.
(read_namespace): Update processing_current_namespace; check for
anonymous namespaces.
(dwarf2_name): New function.
(dwarf2_extension): Ditto.
* cp-support.h: Update copyright, contributors.
Add inclusion guards.
Add opaque declaration for structs obstack, block, symbol.
(struct using_direct): New struct.
Add declarations for cp_find_first_component,
cp_entire_prefix_len, processing_has_namespace_info,
processing_current_namespace, cp_is_anonymous,
cp_add_using_directive, cp_initialize_namespace,
cp_finalize_namespace, cp_set_block_scope,
cp_scan_for_anonymous_namespaces.
* cp-namespace.c: New file.
* cp-support.c: Update copyright.
Include ctype.h, gdb_assert.h, gdbcmd.h.
New variable maint_cplus_cmd_list.
(cp_find_first_component): New function.
(cp_entire_prefix_len, maint_cplus_command)
(first_component_command, _initialize_cp_support): Ditto.
* buildsym.c: Include cp-support.h.
New variable using_list.
(add_symbol_to_list): Check for anonymous namespaces.
(finish_block): Set block's scope.
(start_symtab): Initialize C++ namespace support.
(end_symtab): Finalize C++ namespace support.
* block.h: Add opaque declarations for structs
block_namespace_info, using_direct, and obstack.
Add declarations for block_set_scope and block_set_using.
(struct block): Add 'language_specific' member.
(BLOCK_NAMESPACE): New macro.
* block.c: Include gdb_obstack.h and cp-support.h.
(struct block_namespace_info): New struct.
(block_set_scope): New function.
(block_set_using, block_initialize_namespace): Ditto.
2003-04-15 David Carlton <carlton@math.stanford.edu>
* gdb.c++/maint.exp: New file.
2003-04-15 23:07:11 +00:00
Jim Blandy
93201743fe
* gdb.c++/derivation.exp, gdb.c++/overload.exp,
...
gdb.c++/userdef.cc: Place comments on the lines to which the
marker function might return.
* gdb.c++/derivation.exp, gdb.c++/overload.exp,
gdb.c++/userdef.exp: Look for those comments to check that we've
returned to the right place, instead of checking line numbers.
2003-04-11 19:57:33 +00:00
Jim Blandy
5624293aaa
* gdb.c++/derivation.exp, gdb.c++/overload.exp,
...
gdb.c++/userdef.exp: If GDB fails to restore the selected frame
after an inferior function call, report the failure, but allow the
test to continue.
2003-04-09 23:21:14 +00:00
Corinna Vinschen
6eac95e375
* gdb.c++/casts.exp: Fix startup to run also on embedded targets.
2003-03-27 14:09:52 +00:00
David Carlton
5330f2dba0
2003-03-04 David Carlton <carlton@math.stanford.edu>
...
* gdb.c++/templates.exp (do_tests): Accept valid const in "print
Garply<Garply<char> >:: garply".
(test_ptype_of_templates): KFAIL "ptype T5<int>" and "ptype t5i"
with respect to PR c++/1111; note also PR c++/1113.
(test_template_breakpoints): KFAIL "constructor breakpoint" with
respect to PR c++/1062.
KFAIL "destructor breakpoint" with respect to PR c++/1112.
2003-03-04 17:02:20 +00:00
David Carlton
6ece72dad9
2003-02-28 David Carlton <carlton@math.stanford.edu>
...
* gdb.c++/classes.exp (test_enums): KFAIL "ptype obj_with_enum"
with respect to PR c++/57.
KFAIL "print (ClassWithEnum::PrivEnum) 42" with respect to PR
c++/826.
Create "print ('ClassWithEnum::PrivEnum') 42"; KFAIL it with
respect to PR c++/57.
2003-03-03 18:48:31 +00:00
David Carlton
85ca158413
2003-03-03 David Carlton <carlton@math.stanford.edu>
...
* gdb.c++/templates.exp (do_tests): Convert the KFAILs with
respect to PR c++/33 into FAILs.
2003-03-03 18:39:47 +00:00
David Carlton
8a151ee066
Fix minor slip in previous patch.
2003-02-28 17:59:18 +00:00
David Carlton
f683e100b7
2003-02-28 David Carlton <carlton@math.stanford.edu>
...
* gdb.c++/classes.exp (test_ptype_class_objects): Accept it if we
print class instead of struct and/or superfluous protection
specifiers, as long as the resulting output is equivalent to the
source code.
Delete FIXME from end of messages on tests that don't need
fixing.
2003-02-28 17:51:35 +00:00
David Carlton
a9e0cf2cae
2003-02-28 David Carlton <carlton@math.stanford.edu>
...
* gdb.c++/templates.exp (do_tests): Allow const in the two
Foo<volatile char *>::foo tests.
2003-02-28 17:50:16 +00:00
David Carlton
0b71dc91d9
2003-02-26 David Carlton <carlton@math.stanford.edu>
...
* gdb.c++/templates.exp (do_tests): KFAIL the "print Foo<volatile
char *>::foo" test with respect to PR c++/33. Create a new test
which is identical to that one except that it doesn't put the
space between the "char" and the "*"; KFAIL it, too.
2003-02-26 20:30:05 +00:00
David Carlton
dd14ab4396
2003-02-26 David Carlton <carlton@math.stanford.edu>
...
* gdb.c++/templates.exp (do_tests): Convert XFAILs about printing
template types into either PASSes or KFAILs (corresponding to PR
c++/57). Tweak indentation. Update copyright.
2003-02-26 20:23:13 +00:00
David Carlton
559cd2d004
2003-02-14 David Carlton <carlton@math.stanford.edu>
...
* gdb.c++/virtfunc.exp (test_virtual_calls): Change 'print
pEe->D::vg()" from XFAIL to KFAIL.
2003-02-15 01:20:46 +00:00
Michael Chastain
cbc4d97c1c
2003-02-13 Michael Chastain <mec@shout.net>
...
* gdb.c++/inherit.exp: Remove call to get_debug_format.
2003-02-13 22:42:59 +00:00
Michael Chastain
40f235b7e2
2003-02-12 Michael Chastain <mec@shout.net>
...
* gdb.c++/classes.exp: Remove setup_xfail_format for DWARF 1.
* gdb.c++/inherit.exp: Likewise.
* gdb.c++/cplusfuncs.exp: Remove suppression logic for DWARF 1.
* gdb.c++/templates.exp: Likewise.
* gdb.c++/virtfunc.exp: Likewise.
2003-02-13 21:33:20 +00:00
Michael Chastain
8b8d752579
2003-02-05 Michael Chastain <mec@shout.net>
...
* gdb.c++/local.exp: Relax the test for PR gdb/825 to accept
output for configurations with gcc 2.95.3.
2003-02-06 02:04:21 +00:00
Michael Chastain
29518e1ebf
2003-02-04 Michael Chastain <mec@shout.net>
...
* gdb.c++/anon-union.exp: Do not call gdb_suppress_entire_file.
Call perror and then continue.
2003-02-05 07:25:00 +00:00
Michael Chastain
5af1d5f3ff
2003-02-03 Michael Chastain <mec@shout.net>
...
* gdb.c++/pr-1023.cc: New file.
* gdb.c++/pr-1023.exp: New file.
2003-02-05 06:38:33 +00:00
Jim Blandy
6b5497864a
* gdb.c++/local.exp: Don't expect Local to be in scope in main;
...
it's local to foobar. Check for it there, and check that it's not
present in main.
* gdb.c++/local.cc (marker2): New function.
(foobar): Call marker1.
(main): Call marker2 instead of marker1.
2003-02-05 05:48:46 +00:00
David Carlton
1c5cb38e90
2003-02-04 David Carlton <carlton@math.stanford.edu>
...
* gdb.texinfo (C@t{++}): Recommend DWARF 2, then stabs+.
(Variables): Recommend stabs+ and DWARF 2.
(C plus plus expressions): Correct info about
compiler versions, debug formats.
(Contributors): Change 'DWARF2' to 'DWARF 2'.
PR symtab/874.
2003-02-04 David Carlton <carlton@math.stanford.edu>
* gdb.c++/overload.exp: Test intToChar(1).
* gdb.c++/overload.cc (intToChar): New.
(main): Call intToChar.
2003-02-04 21:19:27 +00:00
David Carlton
d1fe6965e5
2003-02-03 David Carlton <carlton@math.stanford.edu>
...
* gdb.c++/ovldbreak.exp (continue_to_bp_overloaded): Add
'might_kfail' arg.
KFAIL some of the continue_to_bp_overloaded calls, according to
PR c++/1025.
2003-02-04 01:09:03 +00:00
Elena Zannoni
f2dd3617b5
2003-01-20 Elena Zannoni <ezannoni@redhat.com>
...
* gdb.arch/altivec-abi.exp: Set variable 'srcfile' differently, to
allow for different test tree configurations. Update some
tescases accordingly.
* gdb.arch/altivec-regs.exp: Ditto.
* gdb.asm/asm-source.exp: Ditto.
* gdb.base/advance.exp: Ditto.
* gdb.base/display.exp: Ditto.
* gdb.base/long_long.exp: Ditto.
* gdb.base/mips_pro.exp: Ditto.
* gdb.base/overlays.exp: Ditto.
* gdb.base/relocate.exp: Ditto.
* gdb.base/setshow.exp: Ditto.
* gdb.base/step-line.exp: Ditto.
* gdb.base/step-test.exp: Ditto.
* gdb.base/until.exp: Ditto.
* gdb.c++/virtfunc.exp: Get rid of variable 'src'.
2003-01-20 15:40:07 +00:00
David Carlton
c71cdefd6f
2003-01-17 David Carlton <carlton@math.stanford.edu>
...
* gdb.c++/demangle.exp (test_lucid_style_demangling): KFAIL test
corresponding to PR c++/945.
Update copyright.
2003-01-17 20:24:51 +00:00
David Carlton
fdba05d75f
2003-01-17 David Carlton <carlton@math.stanford.edu>
...
* gdb.c++/inherit.exp (test_print_mi_members): KFAIL tests
corresponding to PR c++/68.
(and fix date of previous ChangeLog entry; oops.)
2003-01-17 19:24:16 +00:00
David Carlton
d2b29e01d7
2003-01-16 David Carlton <carlton@math.stanford.edu>
...
* gdb.c++/cplusfuncs.exp (print_addr_2_kfail): New procedure.
(test_paddr_hairy_functions): Call print_addr_2_kfail for
hairyfunc5 through hairyfunc7. KFAIL for PR c++/19.
2003-01-17 19:22:27 +00:00
Daniel Jacobowitz
a0d9b83140
Update copyright date.
2003-01-14 18:42:38 +00:00
Daniel Jacobowitz
9ae66589a7
* gdb.c++/virtfunc.exp: Remove fixed XFAIL.
2003-01-14 18:32:14 +00:00
Daniel Jacobowitz
6ca37014df
* gdb.c++/printmethod.exp (print virtual method): Accept "(void)".
2003-01-14 04:40:48 +00:00
Daniel Jacobowitz
b00234725e
* gdb.base/printcmds.exp: Enable setup_kfail for gdb/538
...
(ptype &*"foo").
* gdb.c++/local.exp: Enable setup_kfail for gdb/482.
2003-01-14 04:34:46 +00:00
Daniel Jacobowitz
b5e5c35c01
Update copyright years.
2003-01-13 20:09:33 +00:00
Daniel Jacobowitz
a1fb14a2c2
* gdb.c++/overload.exp: Remove some fixed XFAILs.
2003-01-13 20:08:16 +00:00
Daniel Jacobowitz
696d5a5b84
* Makefile.in (ALL_SUBDIRS): New variable.
...
(subdirs, clean, distclean): Use it.
* gdb.arch/Makefile.in: Clean up Makefile. Remove rules for
regenerating Makefile, since it is generated from the top level.
* gdb.asm/Makefile.in: Likewise.
* gdb.base/Makefile.in: Likewise.
* gdb.c++/Makefile.in: Likewise.
* gdb.disasm/Makefile.in: Likewise.
* gdb.java/Makefile.in: Likewise.
* gdb.mi/Makefile.in: Likewise.
* gdb.threads/Makefile.in: Likewise.
* gdb.trace/Makefile.in: Likewise.
2003-01-09 18:50:28 +00:00
David Carlton
754533e434
2003-01-09 David Carlton <carlton@math.stanford.edu>
...
* gdb.c++/annota2.exp: KFAIL "watch triggered on a.x".
Add copyright year 2003.
2003-01-09 17:10:39 +00:00
Daniel Jacobowitz
147ff08c6b
* gdb.c++/casts.exp: Correct regexp.
2003-01-04 22:30:21 +00:00
Mark Kettenis
dc62bfc2fc
* configure.in: Call AC_CONFIG_HEADER. Don't call
...
AC_CONFIG_SUBDIRS on gdb.arch, gdb.asm, gdb.base gdb.c++ gdb.java,
gdb.disasm, gdb.mi, gdb.threads and gdb.trace. Call
AC_CHECK_HEADERS on pthread.h. Put Makefiles in the
aforementioned directories in the AC_OUPUT call.
* config.hin: New file.
* gdb.mi/gdb669.exp, gdb.mi/mi-pthreads.exp,
gdb.mi/mi1-pthreads.exp, gdb.threads/gcore-thread.exp,
gdb.threads/killed.exp, gdb.threads/print-threads.exp,
gdb.threads/pthreads.exp, gdb.threads/schedlock.exp: Make sure we
pass -I$objdir instead of -I$objdir/$subdir in compilation.
* gdb.arch/configure.in, gdb.arch/configure, gdb.asm/configure.in,
gdb.asm/configure, gdb.base/configure.in, gdb.base/configure,
gdb.c++/configure.in, gdb.c++/configure, gdb.disasm/configure.in,
gdb.disasm/configure, gdb.java/configure.in, gdb.java/configure,
gdb.mi/configure.in, gdb.mi/configure, gdb.mi/config.in,
gdb.threads/configure.in, gdb.threads/configure,
gdb.threads/config.in, gdb.trace/configure.in,
gdb.trace/configure: Removed.
2003-01-04 15:37:40 +00:00
Jim Blandy
4c2acfeafe
* gdb.c++/psmang.exp: Doc fix.
2002-12-22 02:58:43 +00:00
Jim Blandy
f0708dbbc4
* gdb.c++/psmang.exp, gdb.c++/psmang1.cc, gdb.c++/psmang2.cc: New
...
test.
2002-12-21 22:56:56 +00:00
David Carlton
9579e00017
2002-12-20 David Carlton <carlton@math.stanford.edu>
...
* gdb.c++/annota2.exp: KFAIL annotate-quit.
2002-12-20 18:37:15 +00:00
Michael Chastain
d181017144
2002-12-18 Michael Chastain <mec@shout.net>
...
* gdb.c++/annota2.exp: Add copyright year 2002.
2002-12-19 05:10:45 +00:00
David Carlton
7656509736
2002-12-17 David Carlton <carlton@math.stanford.edu>
...
* gdb.c++/try_catch.cc: Add marker comments.
* gdb.c++/try_catch.exp: Get line numbers from marker comments.
* gdb.c++/m-data.cc: Delete namespace __gnu_test.
* gdb.c++/m-static.cc: Ditto.
* gdb.c++/m-static1.cc: Ditto.
* gdb.c++/try_catch.cc: Ditto.
2002-12-17 23:24:57 +00:00
David Carlton
a23b6e6a0a
2002-12-11 David Carlton <carlton@math.stanford.edu>
...
* gdb.c++/m-data.exp: Add test for members that shadow global
variables: see PR gdb/804.
* gdb.c++/m-data.cc: Ditto.
2002-12-11 18:45:29 +00:00
Jim Blandy
10abb1d48f
* gdb.c++/casts.cc, gdb.c++/casts.exp: New test.
2002-10-02 21:46:56 +00:00
David Carlton
e70d6e3ff5
2002-09-18 David Carlton <carlton@math.stanford.edu>
...
* gdb.c++/m-static.exp: Remove breakpoints depending on line
numbers, and replace them by a single breakpoint after the
constructors are all finished.
Add test 4.
* gdb.c++/m-static.cc: Add test 4.
* gdb.c++/m-static.h: New file.
* gdb.c++/m-static1.cc: New file.
* gdb.c++/printmethod.exp: New file.
* gdb.c++/printmethod.cc: New file.
* gdb.c++/pr-574.exp: New file.
* gdb.c++/pr-574.cc: New file.
2002-09-18 18:48:43 +00:00
Michael Chastain
258093ca1e
2002-05-30 Michael Chastain <mec@shout.net>
...
From Benjamin Kosnik <bkoz@redhat.com>
* gdb.c++/m-static.cc: New file.
* gdb.c++/m-static.exp: New file.
2002-05-30 19:09:47 +00:00
Michael Chastain
71ea1be0a8
2002-05-27 Michael Chastain <mec@shout.net>
...
From Benjamin Kosnik <bkoz@redhat.com>
* gdb.c++/m-data.cc: New file.
* gdb.c++/m-data.exp: New file.
2002-05-27 21:46:52 +00:00