| Index: gdb/testsuite/gdb.cp/baseenum.exp
|
| diff --git a/gdb/testsuite/gdb.cp/dispcxx.exp b/gdb/testsuite/gdb.cp/baseenum.exp
|
| similarity index 58%
|
| copy from gdb/testsuite/gdb.cp/dispcxx.exp
|
| copy to gdb/testsuite/gdb.cp/baseenum.exp
|
| index 417450467acaee8ace4651f2f16a00f4325fba94..5e122dd56076a7701f0d893223b02f642e96dca9 100644
|
| --- a/gdb/testsuite/gdb.cp/dispcxx.exp
|
| +++ b/gdb/testsuite/gdb.cp/baseenum.exp
|
| @@ -1,4 +1,4 @@
|
| -# Copyright 2012 Free Software Foundation, Inc.
|
| +# Copyright 2012-2013 Free Software Foundation, Inc.
|
|
|
| # This program is free software; you can redistribute it and/or modify
|
| # it under the terms of the GNU General Public License as published by
|
| @@ -13,27 +13,24 @@
|
| # You should have received a copy of the GNU General Public License
|
| # along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
| -if { [skip_cplus_tests] } { continue }
|
| +# Test searching enum constant symbols derived from base classes.
|
|
|
| standard_testfile .cc
|
|
|
| -if [get_compiler_info "c++"] {
|
| - untested dispcxx.exp
|
| +if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} {
|
| return -1
|
| }
|
|
|
| -if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} {
|
| +if {![runto_main]} {
|
| + untested "could not run to main"
|
| return -1
|
| }
|
|
|
| -if ![runto_main] then {
|
| - perror "couldn't run to main"
|
| - continue
|
| -}
|
| -
|
| -gdb_breakpoint [gdb_get_line_number "Break here"]
|
| -gdb_continue_to_breakpoint here
|
| +gdb_breakpoint [gdb_get_line_number "breakpoint 1" $srcfile]
|
| +gdb_continue_to_breakpoint "breakpoint 1"
|
| +gdb_test "print X" "= A::X" "Print enum constant X of class A"
|
|
|
| -# Regression test for
|
| -# http://sourceware.org/bugzilla/show_bug.cgi?id=9307.
|
| -gdb_test "display k" "1: k = 23"
|
| +gdb_breakpoint [gdb_get_line_number "breakpoint 2" $srcfile]
|
| +gdb_continue_to_breakpoint "breakpoint 2"
|
| +gdb_test "print X" "= N::A::X" \
|
| + "Print enum constant X of class A in namespace N"
|
|
|