Index: gdb/testsuite/gdb.asm/asm-source.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.asm/asm-source.exp,v retrieving revision 1.50 diff -c -3 -p -r1.50 asm-source.exp *** gdb/testsuite/gdb.asm/asm-source.exp 25 May 2004 04:07:05 -0000 1.50 --- gdb/testsuite/gdb.asm/asm-source.exp 26 Jul 2004 17:14:38 -0000 *************** set asm-arch "" *** 35,47 **** set asm-note "empty" set asm-flags "" set link-flags "--entry _start" switch -glob -- [istarget] { "alpha*-*-*" { set asm-arch alpha # ??? Won't work with ecoff systems like Tru64, but then we also # don't have any other -g flag that creates mdebug output. ! set asm-flags "-gdwarf2 -no-mdebug -I${srcdir}/${subdir} -I${objdir}/${subdir}" } "*arm-*-*" { set asm-arch arm --- 35,49 ---- set asm-note "empty" set asm-flags "" set link-flags "--entry _start" + set debug-flags "" switch -glob -- [istarget] { "alpha*-*-*" { set asm-arch alpha # ??? Won't work with ecoff systems like Tru64, but then we also # don't have any other -g flag that creates mdebug output. ! set asm-flags "-no-mdebug -I${srcdir}/${subdir} -I${objdir}/${subdir}" ! set debug-flags "-gdwarf-2" } "*arm-*-*" { set asm-arch arm *************** switch -glob -- [istarget] { *** 63,69 **** } "x86_64-*-*" { set asm-arch x86_64 ! set asm-flags "-gdwarf2 -I${srcdir}/${subdir} -I${objdir}/${subdir}" } "i\[3456\]86-*-*" { set asm-arch i386 --- 65,72 ---- } "x86_64-*-*" { set asm-arch x86_64 ! set asm-flags "-I${srcdir}/${subdir} -I${objdir}/${subdir}" ! set debug-flags "-gdwarf-2" } "i\[3456\]86-*-*" { set asm-arch i386 *************** switch -glob -- [istarget] { *** 88,105 **** } "sh*-*-*" { set asm-arch sh ! set asm-flags "-gdwarf2 -I${srcdir}/${subdir} -I${objdir}/${subdir}" } "sparc-*-*" { set asm-arch sparc } "sparc64-*-*" { set asm-arch sparc64 ! set asm-flags "-xarch=v9 -gstabs -I${srcdir}/${subdir} -I${objdir}/${subdir}" } "xstormy16-*-*" { set asm-arch xstormy16 ! set asm-flags "-gdwarf2 -I${srcdir}/${subdir} -I${objdir}/${subdir}" } "v850-*-*" { set asm-arch v850 --- 91,111 ---- } "sh*-*-*" { set asm-arch sh ! set asm-flags "-I${srcdir}/${subdir} -I${objdir}/${subdir}" ! set debug-flags "-gdwarf-2" } "sparc-*-*" { set asm-arch sparc } "sparc64-*-*" { set asm-arch sparc64 ! set asm-flags "-xarch=v9 -I${srcdir}/${subdir} -I${objdir}/${subdir}" ! set debug-flags "-gdwarf-2" } "xstormy16-*-*" { set asm-arch xstormy16 ! set asm-flags "-I${srcdir}/${subdir} -I${objdir}/${subdir}" ! set debug-flags "-gdwarf-2" } "v850-*-*" { set asm-arch v850 *************** switch -glob -- [istarget] { *** 110,120 **** } "ia64-*-*" { set asm-arch ia64 ! set asm-flags "-gdwarf2 -I${srcdir}/${subdir} -I${objdir}/${subdir}" } "hppa*-linux-*" { set asm-arch pa ! set asm-flags "-gdwarf2 -I${srcdir}/${subdir} -I${objdir}/${subdir}" } } --- 116,128 ---- } "ia64-*-*" { set asm-arch ia64 ! set asm-flags "-I${srcdir}/${subdir} -I${objdir}/${subdir}" ! set debug-flags "-gdwarf-2" } "hppa*-linux-*" { set asm-arch pa ! set asm-flags "-I${srcdir}/${subdir} -I${objdir}/${subdir}" ! set debug-flags "-gdwarf-2" } } *************** remote_exec build "rm -f ${subdir}/note. *** 161,173 **** remote_download host ${srcdir}/${subdir}/${asm-note}.inc ${subdir}/note.inc if { "${asm-flags}" == "" } { ! set asm-flags "-gstabs -I${srcdir}/${subdir} -I${objdir}/${subdir}" } ! if {[target_assemble ${srcdir}/${subdir}/${srcfile1} asmsrc1.o "${asm-flags}"] != ""} then { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } ! if {[target_assemble ${srcdir}/${subdir}/${srcfile2} asmsrc2.o "${asm-flags}"] != ""} then { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } --- 169,192 ---- remote_download host ${srcdir}/${subdir}/${asm-note}.inc ${subdir}/note.inc if { "${asm-flags}" == "" } { ! set asm-flags "-I${srcdir}/${subdir} -I${objdir}/${subdir}" ! set debug-flags "-gstabs" } ! # Allow the target board to override the debug flags ! if { [board_info $dest exists debug_flags] } then { ! set debug-flags "[board_info $dest debug_flags]" ! } ! ! # The GNU assembler does not support STABS+ ! if { ${debug-flags} == "-gstabs+" } then { ! set debug-flags "-gstabs" ! } ! ! if {[target_assemble ${srcdir}/${subdir}/${srcfile1} asmsrc1.o "${asm-flags} ${debug-flags}"] != ""} then { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } ! if {[target_assemble ${srcdir}/${subdir}/${srcfile2} asmsrc2.o "${asm-flags} ${debug-flags}"] != ""} then { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." }