* lib/gdb.exp (gdb_run_cmd): New function, used to start program
running.
This commit is contained in:
parent
c5ea7f99a4
commit
809943cfa9
1 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue