| Index: gdb/testsuite/gdb.cp/gdb2384.exp
|
| diff --git a/gdb/testsuite/gdb.cp/gdb2384.exp b/gdb/testsuite/gdb.cp/gdb2384.exp
|
| index 0ee27c4eae333ce9fbf4c1c2ff789c8ba537ef4b..cc3d07f50889117a62344aabe8d139b397bb1266 100644
|
| --- a/gdb/testsuite/gdb.cp/gdb2384.exp
|
| +++ b/gdb/testsuite/gdb.cp/gdb2384.exp
|
| @@ -21,37 +21,26 @@
|
| #
|
| # PR c++/9489.
|
|
|
| -if $tracelevel then {
|
| - strace $tracelevel
|
| -}
|
| -
|
| if { [skip_cplus_tests] } { continue }
|
| if { [skip_shlib_tests] } { continue }
|
|
|
| -set testfile "gdb2384"
|
| -set srcfile ${testfile}.cc
|
| -set binfile $objdir/$subdir/$testfile
|
| +standard_testfile .cc gdb2384-base.cc
|
|
|
| -set libfile "gdb2384-base"
|
| -set libsrcfile ${libfile}.cc
|
| -set sofile $objdir/$subdir/${libfile}.so
|
| +set sofile [standard_output_file gdb2384-base.so]
|
|
|
| # Create and source the file that provides information about the compiler
|
| # used to compile the test case.
|
| -if [get_compiler_info ${binfile} "c++"] {
|
| +if [get_compiler_info "c++"] {
|
| return -1
|
| }
|
|
|
| -if { [gdb_compile_shlib $srcdir/$subdir/$libsrcfile $sofile {debug c++}] != ""
|
| +if { [gdb_compile_shlib $srcdir/$subdir/$srcfile2 $sofile {debug c++}] != ""
|
| || [gdb_compile $srcdir/$subdir/$srcfile $binfile executable [list debug "c++" shlib=${sofile}]] != ""} {
|
| untested gdb2384.exp
|
| return -1
|
| }
|
|
|
| -gdb_exit
|
| -gdb_start
|
| -gdb_reinitialize_dir $srcdir/$subdir
|
| -gdb_load ${binfile}
|
| +clean_restart ${binfile}
|
| gdb_load_shlibs ${sofile}
|
|
|
|
|
|
|