mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-26 19:36:58 +08:00
* lib/gdb.exp (runto): Rewrite in terms of gdb_run_cmd.
This commit is contained in:
@ -159,14 +159,9 @@ proc runto { function } {
|
|||||||
timeout { fail "setting breakpoint at $function (timeout)" ; return 0 }
|
timeout { fail "setting breakpoint at $function (timeout)" ; return 0 }
|
||||||
}
|
}
|
||||||
|
|
||||||
send "run\n"
|
|
||||||
# the "at foo.c:36" output we get with -g.
|
# the "at foo.c:36" output we get with -g.
|
||||||
# the "in func" output we get without -g.
|
# the "in func" output we get without -g.
|
||||||
expect {
|
expect_after {
|
||||||
-re "The program .* has been started already.*y or n. $" {
|
|
||||||
send "y\n"
|
|
||||||
exp_continue
|
|
||||||
}
|
|
||||||
-re "Starting.*Break.* at .*:$decimal.*$prompt $" { return 1 }
|
-re "Starting.*Break.* at .*:$decimal.*$prompt $" { return 1 }
|
||||||
-re "Breakpoint \[0-9\]*, \[0-9xa-f\]* in $function.*$prompt $" {
|
-re "Breakpoint \[0-9\]*, \[0-9xa-f\]* in $function.*$prompt $" {
|
||||||
return 1
|
return 1
|
||||||
@ -174,6 +169,8 @@ proc runto { function } {
|
|||||||
-re "$prompt $" { fail "running to $function" ; return 0 }
|
-re "$prompt $" { fail "running to $function" ; return 0 }
|
||||||
timeout { fail "running to $function (timeout)" ; return 0 }
|
timeout { fail "running to $function (timeout)" ; return 0 }
|
||||||
}
|
}
|
||||||
|
gdb_run_cmd
|
||||||
|
expect_after;
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user