From: J.T. Conklin Date: Tue, 19 Jul 1994 22:19:41 +0000 (+0000) Subject: * lib/gdb.exp (gdb_run_cmd): New function, used to start program X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=809943cfa9efbfe9ff44f9e9e91e29f5cfcd7cc0;p=binutils-gdb.git * lib/gdb.exp (gdb_run_cmd): New function, used to start program running. --- diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 438eb633dfd..2a967a2d70d 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