aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/cmpd-minsyms.exp
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2011-05-24 21:00:45 +0000
committerKeith Seitz <keiths@redhat.com>2011-05-24 21:00:45 +0000
commit2e21250dbcb81b1909ba3fbda8931a47c7215beb (patch)
tree826afbd935702e580c12a6c18c39ccd3ae33f85d /gdb/testsuite/gdb.cp/cmpd-minsyms.exp
parentf17170e5e261d76b3481d29203466800d2e9a69b (diff)
downloadgdb-2e21250dbcb81b1909ba3fbda8931a47c7215beb.zip
gdb-2e21250dbcb81b1909ba3fbda8931a47c7215beb.tar.gz
gdb-2e21250dbcb81b1909ba3fbda8931a47c7215beb.tar.bz2
PR breakpoint/12803
* gdb.cp/cmpd-minsyms.cc (a): New method. (b): New method. (c): New method. * gdb.cp/cmpd-minsyms.exp: Add tests for new methods.
Diffstat (limited to 'gdb/testsuite/gdb.cp/cmpd-minsyms.exp')
-rw-r--r--gdb/testsuite/gdb.cp/cmpd-minsyms.exp15
1 files changed, 14 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/cmpd-minsyms.exp b/gdb/testsuite/gdb.cp/cmpd-minsyms.exp
index 36176fc..696022e 100644
--- a/gdb/testsuite/gdb.cp/cmpd-minsyms.exp
+++ b/gdb/testsuite/gdb.cp/cmpd-minsyms.exp
@@ -19,13 +19,26 @@
if {[skip_cplus_tests]} { continue }
-# Test for c++/12273
+# Tests for c++/12273, breakpoint/12803
set testfile "cmpd-minsyms"
# Do NOT compile with debug flag.
if {[prepare_for_testing $testfile $testfile $testfile.cc {c++}]} {
return -1
}
+# Before setting the language, try to set a few simple breakpoints
+set min_syms [list \
+ "GDB<int>::a() const" \
+ "GDB<int>::b() volatile" \
+ "GDB<int>::c() const volatile"]
+foreach sym $min_syms {
+ set tst "setting breakpoint at '$sym'"
+ if {[gdb_breakpoint "'$sym'"]} {
+ pass $tst
+ }
+}
+
+
gdb_test_no_output "set language c++"
# A list of minimal symbol names to check.