mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
Make gdb_continue_to_breakpoint fail quickly on internal errors.
This switches the gdb_continue_to_breakpoint routine to use gdb_test_multiple instead of send_gdb/gdb_expect, so that an internal error is detected immediately, instead of failing on timeout. gdb/testsuite/ 2014-04-22 Pedro Alves <palves@redhat.com> * lib/gdb.exp (gdb_continue_to_breakpoint): Use gdb_test_multiple instead of send_gdb/gdb_expect.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2014-04-22 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
|
* lib/gdb.exp (gdb_continue_to_breakpoint): Use gdb_test_multiple
|
||||||
|
instead of send_gdb/gdb_expect.
|
||||||
|
|
||||||
2014-04-22 Yao Qi <yao@codesourcery.com>
|
2014-04-22 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
* lib/trace-support.exp (generate_tracefile): New procedure.
|
* lib/trace-support.exp (generate_tracefile): New procedure.
|
||||||
|
@ -549,17 +549,10 @@ proc gdb_continue_to_breakpoint {name {location_pattern .*}} {
|
|||||||
global gdb_prompt
|
global gdb_prompt
|
||||||
set full_name "continue to breakpoint: $name"
|
set full_name "continue to breakpoint: $name"
|
||||||
|
|
||||||
send_gdb "continue\n"
|
gdb_test_multiple "continue" $full_name {
|
||||||
gdb_expect {
|
|
||||||
-re "(?:Breakpoint|Temporary breakpoint) .* (at|in) $location_pattern\r\n$gdb_prompt $" {
|
-re "(?:Breakpoint|Temporary breakpoint) .* (at|in) $location_pattern\r\n$gdb_prompt $" {
|
||||||
pass $full_name
|
pass $full_name
|
||||||
}
|
}
|
||||||
-re ".*$gdb_prompt $" {
|
|
||||||
fail $full_name
|
|
||||||
}
|
|
||||||
timeout {
|
|
||||||
fail "$full_name (timeout)"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user