diff options
author | Jason Molenda <jmolenda@apple.com> | 1999-06-07 19:19:32 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1999-06-07 19:19:32 +0000 |
commit | cce74817d9cdf9bdc375a599565105d78e07d167 (patch) | |
tree | f4e74e0a12fdbf4c83a80968e59596b207c1d141 /gdb/testsuite | |
parent | eb858bb4315009ca9572ddf795f5734b7c293e13 (diff) | |
download | gdb-cce74817d9cdf9bdc375a599565105d78e07d167.zip gdb-cce74817d9cdf9bdc375a599565105d78e07d167.tar.gz gdb-cce74817d9cdf9bdc375a599565105d78e07d167.tar.bz2 |
import gdb-1999-06-07 snapshot
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 19 | ||||
-rwxr-xr-x | gdb/testsuite/configure | 9 | ||||
-rw-r--r-- | gdb/testsuite/configure.in | 9 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/Makefile.in | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/a1-selftest.exp | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/condbreak.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/ending-run.exp | 7 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/mips_pro.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.c++/cplusfuncs.cc | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.c++/templates.cc | 8 |
10 files changed, 55 insertions, 15 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index cf0e78d..a6fe8dc 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,22 @@ +Fri Jun 4 10:47:46 1999 Jeffrey A Law (law@cygnus.com) + + * gdb.base/a1-selftest.exp: Remove bogus hppa xfail. + * gdb.base/mips_pro.exp: Likewise. + +1999-06-02 Keith Seitz <keiths@cygnus.com> + + * gdb.c++/templates.cc: Change all "new" operators to throw + an exception. + * gdb.c++/cplusfuncs.cc: Likewise. + + * gdb.base/Makefile.in (EXECUTABLES): Add smoke1, annota1, and annota2. + +Wed Jun 2 17:37:05 1999 Andrew Cagney <cagney@b1.cygnus.com> + + * gdb.base/condbreak.exp: Use rerun_to_main to start the program. + * gdb.base/ending-run.exp: When stepping out of main, accept a + step into an arbitrary assembler file. + 1999-05-20 Elena Zannoni <ezannoni@kwikemart.cygnus.com> * gdb.base/annota1.exp: Allow any number of "frames-invalid" and diff --git a/gdb/testsuite/configure b/gdb/testsuite/configure index 2796fe7..519e32b 100755 --- a/gdb/testsuite/configure +++ b/gdb/testsuite/configure @@ -638,7 +638,14 @@ test "$host_alias" != "$target_alias" && # Directories to use in all configurations. -configdirs="gdb.asm gdb.base gdb.c++ gdb.disasm gdb.chill gdb.threads gdb.trace" +configdirs="gdb.asm \ + gdb.base \ + gdb.c++ \ + gdb.disasm \ + gdb.chill \ + gdb.threads \ + gdb.trace" + # Directories to use for a configuration which uses stabs. stabsdirs="gdb.stabs" diff --git a/gdb/testsuite/configure.in b/gdb/testsuite/configure.in index 83356a9..96e9de7 100644 --- a/gdb/testsuite/configure.in +++ b/gdb/testsuite/configure.in @@ -13,7 +13,14 @@ AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..) AC_CANONICAL_SYSTEM # Directories to use in all configurations. -configdirs="gdb.asm gdb.base gdb.c++ gdb.disasm gdb.chill gdb.threads gdb.trace" +configdirs="gdb.asm \ + gdb.base \ + gdb.c++ \ + gdb.disasm \ + gdb.chill \ + gdb.threads \ + gdb.trace" + # Directories to use for a configuration which uses stabs. stabsdirs="gdb.stabs" diff --git a/gdb/testsuite/gdb.base/Makefile.in b/gdb/testsuite/gdb.base/Makefile.in index 11cf1da..050ccc8 100644 --- a/gdb/testsuite/gdb.base/Makefile.in +++ b/gdb/testsuite/gdb.base/Makefile.in @@ -1,7 +1,7 @@ VPATH = @srcdir@ srcdir = @srcdir@ -EXECUTABLES = all-types bitfields break \ +EXECUTABLES = all-types annota1 annota2 bitfields break \ call-ar-st call-rt-st call-strs callfuncs callfuncs2 commands \ compiler condbreak constvars coremaker display \ ending-run exprs funcargs int-type interrupt \ @@ -10,7 +10,7 @@ EXECUTABLES = all-types bitfields break \ mips_pro miscexprs nodebug opaque pointers pointers2 printcmds ptype \ recurse reread reread1 restore return run \ scope section_command setshow setvar \ - shmain sigall signals smoke \ + shmain sigall signals smoke smoke1 \ solib so-impl-ld so-indr-cl \ step-test structs structs2 twice-tmp varargs watchpoint whatis diff --git a/gdb/testsuite/gdb.base/a1-selftest.exp b/gdb/testsuite/gdb.base/a1-selftest.exp index bc3893a..c0d17c8 100644 --- a/gdb/testsuite/gdb.base/a1-selftest.exp +++ b/gdb/testsuite/gdb.base/a1-selftest.exp @@ -74,6 +74,10 @@ proc do_steps_and_nexts {} { set description "step over ttyarg initialization" set command "step" } + -re ".*interparg = NULL.*$gdb_prompt $" { + set description "step over interparg initialization" + set command "step" + } -re ".*time_at_startup = get_run_time.*$gdb_prompt $" { set description "next over get_run_time and everything it calls" set command "next" @@ -269,7 +273,7 @@ proc test_with_self { executable } { # If we don't actually enter the xmalloc call when we give a # step command that seems like a genuine bug. It seems to happen # on most RISC processors. - setup_xfail "alpha-*-*" "hppa*-*-*" "mips-*-*" + setup_xfail "alpha-*-*" "mips-*-*" set description "step into xmalloc call" send_gdb "step\n" gdb_expect { diff --git a/gdb/testsuite/gdb.base/condbreak.exp b/gdb/testsuite/gdb.base/condbreak.exp index cf9deba..281616b 100644 --- a/gdb/testsuite/gdb.base/condbreak.exp +++ b/gdb/testsuite/gdb.base/condbreak.exp @@ -122,7 +122,7 @@ gdb_test "info break" \ # -gdb_run_cmd +rerun_to_main # # run until the breakpoint at a line number diff --git a/gdb/testsuite/gdb.base/ending-run.exp b/gdb/testsuite/gdb.base/ending-run.exp index da78e3b..a8d0f05 100644 --- a/gdb/testsuite/gdb.base/ending-run.exp +++ b/gdb/testsuite/gdb.base/ending-run.exp @@ -151,9 +151,12 @@ gdb_expect { -re ".*in.*start.*$gdb_prompt $" { pass "step out of main" } - -re ".*Program received signal SIGTRAP.*$gdb_prompt $" { + -re ".*in.*currently asm.*$gdb_prompt $" { + pass "step out of main into assembler" + } + -re ".*Program received signal SIGTRAP.*$gdb_prompt $" { pass "Cygmon stopped in ending trap." - } + } timeout { fail "hang or timeout on step at end 1" } } diff --git a/gdb/testsuite/gdb.base/mips_pro.exp b/gdb/testsuite/gdb.base/mips_pro.exp index ea2461e..2b94de6 100644 --- a/gdb/testsuite/gdb.base/mips_pro.exp +++ b/gdb/testsuite/gdb.base/mips_pro.exp @@ -55,7 +55,7 @@ gdb_load ${binfile} if [runto middle] then { # PR 3016 if {$gcc_compiled} then { - setup_xfail "hppa*-*-*" "mips*-sgi-irix4*" "mips64*-*-elf" + setup_xfail "mips*-sgi-irix4*" "mips64*-*-elf" } gdb_test "backtrace" "#0.*middle.*#1.*top.*#2.*main.*" } diff --git a/gdb/testsuite/gdb.c++/cplusfuncs.cc b/gdb/testsuite/gdb.c++/cplusfuncs.cc index 924cf54..acb73b1 100644 --- a/gdb/testsuite/gdb.c++/cplusfuncs.cc +++ b/gdb/testsuite/gdb.c++/cplusfuncs.cc @@ -45,7 +45,7 @@ public: void operator ->* (foo&); void operator [] (foo&); void operator () (foo&); - void* operator new (size_t); + void* operator new (size_t) throw (); void operator delete (void *); /**/ operator int (); /**/ operator char* (); @@ -114,7 +114,7 @@ void foo::operator ^= (foo& afoo) { afoo.ifoo = 0; } void foo::operator ->* (foo& afoo) { afoo.ifoo = 0; } void foo::operator [] (foo& afoo) { afoo.ifoo = 0; } void foo::operator () (foo& afoo) { afoo.ifoo = 0; } -void* foo::operator new (size_t ival) { ival = 0; return 0; } +void* foo::operator new (size_t ival) throw () { ival = 0; return 0; } void foo::operator delete (void *ptr) { ptr = 0; } /**/ foo::operator int () { return 0; } /**/ foo::operator char* () { return 0; } diff --git a/gdb/testsuite/gdb.c++/templates.cc b/gdb/testsuite/gdb.c++/templates.cc index 25241dc..470024c 100644 --- a/gdb/testsuite/gdb.c++/templates.cc +++ b/gdb/testsuite/gdb.c++/templates.cc @@ -290,7 +290,7 @@ void printf(const char *format, ... ) class T1 { public: - static void* operator new(size_t); + static void* operator new(size_t) throw (); static void operator delete(void *pointer); void operator=(const T1&); @@ -365,7 +365,7 @@ public: }; void* -T1::operator new(size_t) +T1::operator new(size_t) throw () { return 0; } void @@ -456,7 +456,7 @@ public: T5(int); T5(const T5<T>&); ~T5(); - static void* operator new(size_t); + static void* operator new(size_t) throw (); static void operator delete(void *pointer); int value(); @@ -479,7 +479,7 @@ T5<T>::~T5() template<class T> void* -T5<T>::operator new(size_t) +T5<T>::operator new(size_t) throw () { return 0; } template<class T> |