diff options
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/gdb.base/nodebug.exp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/nodebug.exp b/gdb/testsuite/gdb.base/nodebug.exp index 4ad7f89..1d95c88 100644 --- a/gdb/testsuite/gdb.base/nodebug.exp +++ b/gdb/testsuite/gdb.base/nodebug.exp @@ -8,21 +8,28 @@ set prms_id 0 set bug_id 0 set testfile nodebug -set srcfile ${srcdir}/$subdir/${testfile}.c +set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [compile "${srcfile} -o ${binfile}"] != "" } { + +# Get rid of any -g options (including -gstabs, -gdwarf, etc... +regsub -all -- {[ ]-g[^ ]*} $target_info(target,cflags) { } target_info(target,cflags) + +if { [compile "${srcdir}/${subdir}/${srcfile} -o ${binfile}"] != "" } { perror "Couldn't compile ${srcfile}" return -1 } +# 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 ${testfile}.ci file" + perror "Couldn't make ${binfile}.ci file" return -1 } +source ${binfile}.ci + gdb_reinitialize_dir $srcdir/$subdir gdb_load $binfile -source ${binfile}.ci if [runto inner] then { @@ -110,11 +117,14 @@ if [runto inner] then { # This test is not as obscure as it might look. `p getenv ("TERM")' # is a real-world example, at least on many systems. + setup_xfail "h8300*-*-*" + if {!$gcc_compiled} then { setup_xfail "hppa*-*-hpux*" } gdb_test {p/c array_index("abcdef",2)} " = 99 'c'" # Now, try that we can give names of file-local symbols which happen # to be unique, and have it still work if [runto middle] then { + setup_xfail "h8300*-*-*" gdb_test "backtrace" "#0.*middle.*#1.*top.*#2.*main.*" \ "backtrace from middle in nodebug.exp" } |