From: Elena Zannoni Date: Fri, 15 Jan 1999 19:10:52 +0000 (+0000) Subject: Fri Jan 15 14:04:57 1999 Elena Zannoni X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7930c920e445cabecd07bb9a471dd439e39e6481;p=binutils-gdb.git Fri Jan 15 14:04:57 1999 Elena Zannoni * gdb.hp/watch-cmd.exp: do not execute unless on hppa-hpux platform and compiled w/o GCC. * gdb.hp/watch-hp.exp: ditto. * gdb.hp/xdb1.exp: ditto. * gdb.hp/xdb2.exp: ditto. * gdb.hp/dbx.exp: ditto. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 00f78b53d69..8c5e0f33d40 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,16 @@ +Fri Jan 15 14:04:57 1999 Elena Zannoni + + * gdb.hp/watch-cmd.exp: do not execute unless on hppa-hpux platform + and compiled w/o GCC. + + * gdb.hp/watch-hp.exp: ditto. + + * gdb.hp/xdb1.exp: ditto. + + * gdb.hp/xdb2.exp: ditto. + + * gdb.hp/dbx.exp: ditto. + Thu Jan 14 18:36:48 1999 Stan Shebs * constvars.c: Remove C++-isms. diff --git a/gdb/testsuite/gdb.hp/dbx.exp b/gdb/testsuite/gdb.hp/dbx.exp index ea953f3d52d..66f24e90a59 100644 --- a/gdb/testsuite/gdb.hp/dbx.exp +++ b/gdb/testsuite/gdb.hp/dbx.exp @@ -22,6 +22,7 @@ if $tracelevel then { strace $tracelevel } + set testfile1 "average" set testfile2 "sum" set testfile "dbx-test" @@ -43,6 +44,10 @@ if { [gdb_compile "${binfile1}.o ${binfile2}.o" ${binfile} executable {debug}] gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } +if [get_compiler_info ${binfile}] { + return -1; +} +if {[skip_hp_tests $gcc_compiled]} then { continue } proc dbx_reinitialize_dir { subdir } { global gdb_prompt diff --git a/gdb/testsuite/gdb.hp/watch-cmd.exp b/gdb/testsuite/gdb.hp/watch-cmd.exp index 968a524098f..a7e3b5c5132 100644 --- a/gdb/testsuite/gdb.hp/watch-cmd.exp +++ b/gdb/testsuite/gdb.hp/watch-cmd.exp @@ -35,6 +35,22 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb } +# are we on a target board +if ![isnative] then { + return +} + +if {![istarget "hppa*-*-hpux10.30"] && ![istarget "hppa*-*-hpux11.*"]} { + #setup_xfail "*-*.*" + return 0 +} + +if [get_compiler_info ${binfile}] { + return -1; +} +if {[skip_hp_tests $gcc_compiled]} then { continue } + + gdb_exit gdb_start delete_breakpoints @@ -144,3 +160,6 @@ watchpoint_command_test + + + diff --git a/gdb/testsuite/gdb.hp/watch-hp.exp b/gdb/testsuite/gdb.hp/watch-hp.exp index e25441b1008..a1c3fc823f7 100644 --- a/gdb/testsuite/gdb.hp/watch-hp.exp +++ b/gdb/testsuite/gdb.hp/watch-hp.exp @@ -33,6 +33,11 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } +if [get_compiler_info ${binfile}] { + return -1; +} +if {[skip_hp_tests $gcc_compiled]} then { continue } + # Prepare for watchpoint tests by setting up two breakpoints and one # watchpoint. # diff --git a/gdb/testsuite/gdb.hp/xdb1.exp b/gdb/testsuite/gdb.hp/xdb1.exp index 57e20daaab6..88ab2fc5864 100644 --- a/gdb/testsuite/gdb.hp/xdb1.exp +++ b/gdb/testsuite/gdb.hp/xdb1.exp @@ -23,6 +23,7 @@ if $tracelevel then { strace $tracelevel } + global usestubs # @@ -38,6 +39,11 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } +if [get_compiler_info ${binfile}] { + return -1; +} +if {[skip_hp_tests $gcc_compiled]} then { continue } + global GDBFLAGS set saved_gdbflags $GDBFLAGS diff --git a/gdb/testsuite/gdb.hp/xdb2.exp b/gdb/testsuite/gdb.hp/xdb2.exp index b138ee39bfc..4cc7b341e09 100644 --- a/gdb/testsuite/gdb.hp/xdb2.exp +++ b/gdb/testsuite/gdb.hp/xdb2.exp @@ -49,6 +49,13 @@ if { [gdb_compile "${binfile}0.o ${binfile}1.o" ${binfile} executable {debug}] return -1 } + +if [get_compiler_info ${binfile}] { + return -1; +} +if {[skip_hp_tests $gcc_compiled]} then { continue } + + global GDBFLAGS set saved_gdbflags $GDBFLAGS set GDBFLAGS "$GDBFLAGS --xdb"