| Index: gdb/testsuite/gdb.cp/classes.exp
|
| diff --git a/gdb/testsuite/gdb.cp/classes.exp b/gdb/testsuite/gdb.cp/classes.exp
|
| index 3793f91e2339a1f99a090f63d87482b2f81c38fa..440677b25d19f894e660b1c8e78f9616a07bc2f5 100644
|
| --- a/gdb/testsuite/gdb.cp/classes.exp
|
| +++ b/gdb/testsuite/gdb.cp/classes.exp
|
| @@ -18,21 +18,14 @@
|
|
|
| set nl "\[\r\n\]+"
|
|
|
| -if $tracelevel then {
|
| - strace $tracelevel
|
| -}
|
| -
|
| if { [skip_cplus_tests] } { continue }
|
|
|
| load_lib "cp-support.exp"
|
|
|
| -set testfile "classes"
|
| -set srcfile ${testfile}.cc
|
| -set binfile ${objdir}/${subdir}/${testfile}
|
| +standard_testfile .cc
|
|
|
| -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug c++}] != "" } {
|
| - untested classes.exp
|
| - return -1
|
| +if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} {
|
| + return -1
|
| }
|
|
|
| # Test ptype of class objects.
|
| @@ -523,8 +516,8 @@ proc test_static_members {} {
|
| gdb_test "print Foo::st" "\\$\[0-9\]+ = 100"
|
| gdb_test_no_output "set foo.st = 200" ""
|
| gdb_test "print bar.st" "\\$\[0-9\]+ = 200"
|
| - gdb_test "print &foo.st" "\\$\[0-9\]+ = \\(int ?\\*\\) $hex"
|
| - gdb_test "print &Bar::st" "\\$\[0-9\]+ = \\(int ?\\*\\) $hex"
|
| + gdb_test "print &foo.st" "\\$\[0-9\]+ = \\(int ?\\*\\) $hex <Foo::st>"
|
| + gdb_test "print &Bar::st" "\\$\[0-9\]+ = \\(int ?\\*\\) $hex <Foo::st>"
|
| gdb_test "print *\$" "\\$\[0-9\]+ = 200"
|
|
|
| gdb_test_no_output "set print static-members off"
|
| @@ -545,21 +538,10 @@ proc test_static_members {} {
|
| }
|
|
|
| proc do_tests {} {
|
| - global subdir
|
| - global objdir
|
| - global srcdir
|
| - global binfile
|
| global gdb_prompt
|
| global nl
|
|
|
|
|
| - # Start with a fresh gdb.
|
| -
|
| - gdb_exit
|
| - gdb_start
|
| - gdb_reinitialize_dir $srcdir/$subdir
|
| - gdb_load $binfile
|
| -
|
| gdb_test_no_output "set language c++" ""
|
| gdb_test_no_output "set width 0" ""
|
|
|
|
|