aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/misc.exp
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-06-01 18:18:35 +0000
committerMichael Snyder <msnyder@vmware.com>2010-06-01 18:18:35 +0000
commitf8d3bf8f5206c7084bd9e639394c15716562a041 (patch)
tree95030c802594ef1f585e9022211e9e2350571902 /gdb/testsuite/gdb.cp/misc.exp
parent285d560d3afdd33d59c7f9ee0abe6e854df299e4 (diff)
downloadgdb-f8d3bf8f5206c7084bd9e639394c15716562a041.zip
gdb-f8d3bf8f5206c7084bd9e639394c15716562a041.tar.gz
gdb-f8d3bf8f5206c7084bd9e639394c15716562a041.tar.bz2
2010-05-25 Michael Snyder <msnyder@vmware.com>
* gdb.cp/annota2.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/annota3.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/anon-union.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/cplusfuncs.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/demangle.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/formatted-ref.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/local.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/method.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/misc.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/namespace.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/ovldbreak.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/pr-1023.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/ref-types.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/templates.exp: Replace uses of send_gdb / gdb_expect. * gdb.cp/userdef.exp: Replace uses of send_gdb / gdb_expect.
Diffstat (limited to 'gdb/testsuite/gdb.cp/misc.exp')
-rw-r--r--gdb/testsuite/gdb.cp/misc.exp34
1 files changed, 6 insertions, 28 deletions
diff --git a/gdb/testsuite/gdb.cp/misc.exp b/gdb/testsuite/gdb.cp/misc.exp
index 7ff9305..cf22a48 100644
--- a/gdb/testsuite/gdb.cp/misc.exp
+++ b/gdb/testsuite/gdb.cp/misc.exp
@@ -39,39 +39,17 @@ proc deduce_language_of_main {} {
# See what language gdb thinks main() is, prior to reading full symbols.
# I think this fails for COFF targets.
- send_gdb "show language\n"
- gdb_expect {
- -re ".* source language is \"auto; currently c\[+\]+\".*$gdb_prompt $" {
- pass "deduced language is C++, before full symbols"
- }
- -re ".*$gdb_prompt $" {
- fail "source language not correct for C++ (psymtabs only)"
- return
- }
- timeout {
- fail "can't show language (timeout)"
- return
- }
- }
+ gdb_test "show language" \
+ "source language is \"auto; currently c\[+\]+\".*" \
+ "deduced language is C++, before full symbols"
runto_main
# See if our idea of the language has changed.
- send_gdb "show language\n"
- gdb_expect {
- -re ".* source language is \"auto; currently c\[+\]+\".*$gdb_prompt $" {
- pass "deduced language is C++, after full symbols"
- }
- -re ".*$gdb_prompt $" {
- fail "source language not correct for C++ (full symbols)"
- return
- }
- timeout {
- fail "can't show language (timeout)"
- return
- }
- }
+ gdb_test "show language" \
+ "source language is \"auto; currently c\[+\]+\".*" \
+ "deduced language is C++, after full symbols"
}
proc test_expr { args } {