]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/gdb.base/mips_pro.exp
* config/sh/tm-sh.h (BELIEVE_PCC_PROMOTION): Define, so that
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / mips_pro.exp
CommitLineData
f646eef4
FF
1if $tracelevel then {
2 strace $tracelevel
3}
4
5set prms_id 0
6set bug_id 0
7
8set testfile mips_pro
9set srcfile ${srcdir}/$subdir/${testfile}.c
10set binfile ${objdir}/${subdir}/${testfile}
11
12# Create and source the file that provides information about the compiler
13# used to compile the test case.
14execute_anywhere "rm -f ${binfile}.ci"
15if { [compile "-E ${srcdir}/${subdir}/compiler.c >> ${binfile}.ci"] != "" } {
16 perror "Couldn't make ${binfile}.ci"
17 return -1
18}
19source ${binfile}.ci
20
21gdb_exit
22gdb_start
23gdb_reinitialize_dir $srcdir/$subdir
24gdb_load ${binfile}
25
26# This test must be compiled with -O2 if using gcc.
27
28if {$gcc_compiled} then {
29 if { [compile "${srcfile} -O2 -g -o ${binfile}"] != "" } {
30 perror "Couldn't compile ${srcfile} with -O2"
31 return -1
32 }
33} else {
34 if { [compile "${srcfile} -g -o ${binfile}"] != "" } {
35 perror "Couldn't compile ${srcfile}"
36 return -1
37 }
38}
39
40gdb_reinitialize_dir $srcdir/$subdir
41gdb_load $binfile
42
43if [runto middle] then {
44 # PR 3016
45 if {$gcc_compiled} then { setup_xfail "hppa*-*-*" }
46 gdb_test "backtrace" "#0.*middle.*#1.*top.*#2.*main.*"
47}
48return 0