From 6420594bbf94e458e25624287aeabe3418946878 Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Thu, 17 Oct 1996 02:12:24 +0000 Subject: * testsuite/gdb.base/break.exp: Make backtrace from factorial errors unique. * testsuite/gdb.base/nodebug.exp: Whack out all -g options explicitly. * v850-tdep.c (v850_init_extra_frame_info v850_frame_chain): Fix sign bugs with scanning prologues. Get a little smarter about calculating the length of uninteresting instructions. --- gdb/testsuite/gdb.base/nodebug.exp | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'gdb/testsuite') 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" } -- cgit v1.1