diff options
Diffstat (limited to 'gdb/testsuite/gdb.chill/pr-8136.exp')
-rw-r--r-- | gdb/testsuite/gdb.chill/pr-8136.exp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.chill/pr-8136.exp b/gdb/testsuite/gdb.chill/pr-8136.exp index 29f99a9..133144f 100644 --- a/gdb/testsuite/gdb.chill/pr-8136.exp +++ b/gdb/testsuite/gdb.chill/pr-8136.exp @@ -27,7 +27,8 @@ if [skip_chill_tests] then { continue } set testfile2 "func1" set srcfile2 ${srcdir}/$subdir/${testfile2}.ch -if { [compile "${srcfile2} -g -c"] != "" } { +set objfile2 ${objdir}/$subdir/${testfile2}.o +if { [compile "${srcfile2} -g -c -o ${objfile2}"] != "" } { perror "Couldn't compile ${srcfile2}" return -1 } @@ -35,7 +36,7 @@ if { [compile "${srcfile2} -g -c"] != "" } { set testfile "pr-8136" set srcfile ${srcdir}/$subdir/pr-8136.ch set binfile ${objdir}/${subdir}/${testfile}.exe -if { [compile "${srcfile} -g -o ${binfile} ${CHILL_RT0} ${CHILL_LIB}"] != "" } { +if { [compile "${srcfile} -g ${objfile2} -o ${binfile} ${CHILL_RT0} ${CHILL_LIB}"] != "" } { perror "Couldn't compile ${srcfile}" return -1 } |