| Index: gdb/testsuite/gdb.cp/pr10728.exp
|
| diff --git a/gdb/testsuite/gdb.cp/pr10728.exp b/gdb/testsuite/gdb.cp/pr10728.exp
|
| index 7568d66472c07c98439a989c8a7a74e79dae4646..3391a19fa4e12d720ff27340a3b5cf9e95baf438 100644
|
| --- a/gdb/testsuite/gdb.cp/pr10728.exp
|
| +++ b/gdb/testsuite/gdb.cp/pr10728.exp
|
| @@ -21,18 +21,16 @@ if { [skip_cplus_tests] } { continue }
|
|
|
| load_lib "cp-support.exp"
|
|
|
| -set testfile "pr10728"
|
| -set srcfile ${testfile}-x.cc
|
| -set tfx ${testfile}-x
|
| -set tfy ${testfile}-y
|
| -set binfile ${objdir}/${subdir}/${testfile}
|
| +standard_testfile pr10728-x.cc pr10728-y.cc
|
| +set tfx [standard_output_file pr10728-x.o]
|
| +set tfy [standard_output_file pr10728-y.o]
|
|
|
| -if { [gdb_compile "${srcdir}/${subdir}/${tfy}.cc" "${tfy}.o" object {c++}] != "" } {
|
| +if { [gdb_compile "${srcdir}/${subdir}/$srcfile2" "${tfy}.o" object {c++}] != "" } {
|
| untested pr10728.exp
|
| return -1
|
| }
|
|
|
| -if { [gdb_compile "${srcdir}/${subdir}/${tfx}.cc" "${tfx}.o" object {debug c++}] != "" } {
|
| +if { [gdb_compile "${srcdir}/${subdir}/$srcfile" "${tfx}.o" object {debug c++}] != "" } {
|
| untested pr10728.exp
|
| return -1
|
| }
|
| @@ -42,11 +40,7 @@ if { [gdb_compile "${tfx}.o ${tfy}.o" ${binfile} executable {debug c++}] != ""
|
| return -1
|
| }
|
|
|
| -
|
| -gdb_exit
|
| -gdb_start
|
| -gdb_reinitialize_dir $srcdir/$subdir
|
| -gdb_load ${binfile}
|
| +clean_restart $binfile
|
|
|
| if ![runto_main] then {
|
| perror "couldn't run to breakpoint"
|
|
|