aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Chastain <mec@google.com>2004-01-08 06:35:15 +0000
committerMichael Chastain <mec@google.com>2004-01-08 06:35:15 +0000
commit2789202a9c2e05785ac16b579a1cb2cbf2006a76 (patch)
tree7c1179383af2255a38c92081b3609f10457f6937 /gdb/testsuite/gdb.cp/ctti.exp
parent2004-01-07 Michael Chastain <mec.gnu@mindspring.com> (diff)
downloadbinutils-gdb-2789202a9c2e05785ac16b579a1cb2cbf2006a76.tar.gz
binutils-gdb-2789202a9c2e05785ac16b579a1cb2cbf2006a76.tar.bz2
binutils-gdb-2789202a9c2e05785ac16b579a1cb2cbf2006a76.zip
2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
* gdb.cp/cttiadd.c: Add a marker for gdb_get_line_number. * gdb.cp/ctti.exp: Use the marker instead of "next". With gcc, run further before bailing.
Diffstat (limited to 'gdb/testsuite/gdb.cp/ctti.exp')
-rw-r--r--gdb/testsuite/gdb.cp/ctti.exp18
1 files changed, 7 insertions, 11 deletions
diff --git a/gdb/testsuite/gdb.cp/ctti.exp b/gdb/testsuite/gdb.cp/ctti.exp
index 80edce10e5a..a5e75d8136e 100644
--- a/gdb/testsuite/gdb.cp/ctti.exp
+++ b/gdb/testsuite/gdb.cp/ctti.exp
@@ -76,22 +76,18 @@ if ![runto_main] then {
continue
}
-# TODO: this needs more work before actually deploying it.
-# So bail out here.
-
-if { [ test_compiler_info gcc-*] } then { continue }
-
-gdb_test "next" "$decimal.*i = 2;" "next 1"
-gdb_test "next" "$decimal.*f = 4.5;" "next 2"
-gdb_test "next" "$decimal.*c = add\\(c, c\\);" "next 3"
-gdb_test "next" "$decimal.*i = add\\(i, i\\);" "next 4"
-gdb_test "next" "$decimal.*f = add\\(f, f\\);" "next 5"
-gdb_test "next" "$decimal.*add1\\(\\);" "next 6"
+gdb_breakpoint [gdb_get_line_number "marker add1"]
+gdb_continue_to_breakpoint "marker add1"
gdb_test "print c" "\\$\[0-9\]+ = -62 .*"
gdb_test "print f" "\\$\[0-9\]+ = 9"
gdb_test "print i" "\\$\[0-9\]+ = 4"
+# TODO: this needs more work before actually deploying it.
+# So bail out here.
+
+if { [ test_compiler_info gcc-*] } then { continue }
+
gdb_test_multiple "print add<int>(2,2)" "print add<int>(2,2)" {
-re "\\$\[0-9\]+ = 4\r\n$gdb_prompt $" {
pass "print add<int>(2,2)"