f646eef47b
"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.
48 lines
1.1 KiB
Text
48 lines
1.1 KiB
Text
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
|