aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>1994-07-19 22:19:41 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>1994-07-19 22:19:41 +0000
commit809943cfa9efbfe9ff44f9e9e91e29f5cfcd7cc0 (patch)
tree95f4e3cc1d45183a9dbe236fb9459c2d0f077c50 /gdb/testsuite
parentc5ea7f99a46a79b864923353cbaedc4156ba9a58 (diff)
downloadgdb-809943cfa9efbfe9ff44f9e9e91e29f5cfcd7cc0.zip
gdb-809943cfa9efbfe9ff44f9e9e91e29f5cfcd7cc0.tar.gz
gdb-809943cfa9efbfe9ff44f9e9e91e29f5cfcd7cc0.tar.bz2
* lib/gdb.exp (gdb_run_cmd): New function, used to start program
running.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/lib/gdb.exp14
1 files changed, 13 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index 438eb63..2a967a2 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -113,12 +113,24 @@ proc delete_breakpoints {} {
#
+#
+#
+proc gdb_run_cmd {} {
+ send "run\n"
+ expect {
+ -re "The program .* has been started already.*y or n. $" {
+ send "y\n"
+ exp_continue
+ }
+ }
+}
+
+
# Set breakpoint at function and run gdb until it breaks there.
# Since this is the only breakpoint that will be set, if it stops
# at a breakpoint, we will assume it is the one we want. We can't
# just compare to "function" because it might be a fully qualified,
# single quoted C++ function specifier.
-#
proc runto { function } {
global prompt