diff options
author | Fred Fish <fnf@specifix.com> | 1996-10-01 03:29:45 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1996-10-01 03:29:45 +0000 |
commit | f646eef47b3e027da0765c2588fd1afd3df7cd46 (patch) | |
tree | 10848792f543ea203177ed251dd72689241d4930 /gdb/testsuite/gdb.base | |
parent | b51843d888b7f0f26303742b70b035fdd4abd652 (diff) | |
download | gdb-f646eef47b3e027da0765c2588fd1afd3df7cd46.zip gdb-f646eef47b3e027da0765c2588fd1afd3df7cd46.tar.gz gdb-f646eef47b3e027da0765c2588fd1afd3df7cd46.tar.bz2 |
* gdb.base/interrupt.exp: Add i*86-*-linux* setup_xfail for
"p func1 ()" and note that rests of tests are skipped.
* gdb.base/corefile.exp: Add i*86-*-linux* and m68*-*-hpux*
setup_xfails for "print func2::coremaker_local".
Add i*86-*-linux* setup_xfail for "backtrace in corefile.exp".
* gdb.base/mips_pro.exp: Restart gdb in this test so it isn't
affected by the previous run test.
* gdb.chill/misc.exp: Add m68*-*-hpux* setup_xfails for
"print array () ubyte (foo)" and "print/x array () byte (\$i)"
* gdb.chill/pr-8742.exp: Add m68*-*-hpux* setup_xfails for
"pass int powerset tuple" and "pass modeless int powerset tuple".
* gdb.chill/tests2.exp: Add m68*-*-hpux* setup xfails for
"real write 4" and "real write 8".
* gdb.shill/tuples.exp: Add i*86-*-linux* and m68*-*-hpux*
setup_xfails for "print vs1 after tuple assign 2",
"print \$i after tuple assign 2", and
"print vs2 after tuple assign 2".
* lib/gdb.exp (gdb_test): When a gdb aborts, print a more
meaningful error message and return -1 so the caller can
suppress further tests and avoid a cascade of errors.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r-- | gdb/testsuite/gdb.base/mips_pro.exp | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/mips_pro.exp b/gdb/testsuite/gdb.base/mips_pro.exp new file mode 100644 index 0000000..55e0744 --- /dev/null +++ b/gdb/testsuite/gdb.base/mips_pro.exp @@ -0,0 +1,48 @@ +if $tracelevel then { + strace $tracelevel +} + +set prms_id 0 +set bug_id 0 + +set testfile mips_pro +set srcfile ${srcdir}/$subdir/${testfile}.c +set binfile ${objdir}/${subdir}/${testfile} + +# Create and source the file that provides information about the compiler +# used to compile the test case. +execute_anywhere "rm -f ${binfile}.ci" +if { [compile "-E ${srcdir}/${subdir}/compiler.c >> ${binfile}.ci"] != "" } { + perror "Couldn't make ${binfile}.ci" + return -1 +} +source ${binfile}.ci + +gdb_exit +gdb_start +gdb_reinitialize_dir $srcdir/$subdir +gdb_load ${binfile} + +# This test must be compiled with -O2 if using gcc. + +if {$gcc_compiled} then { + if { [compile "${srcfile} -O2 -g -o ${binfile}"] != "" } { + perror "Couldn't compile ${srcfile} with -O2" + return -1 + } +} else { + if { [compile "${srcfile} -g -o ${binfile}"] != "" } { + perror "Couldn't compile ${srcfile}" + return -1 + } +} + +gdb_reinitialize_dir $srcdir/$subdir +gdb_load $binfile + +if [runto middle] then { + # PR 3016 + if {$gcc_compiled} then { setup_xfail "hppa*-*-*" } + gdb_test "backtrace" "#0.*middle.*#1.*top.*#2.*main.*" +} +return 0 |