mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
* gdb.server/ext-run.exp: Fix intermittent failures.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2010-11-18 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* gdb.server/ext-run.exp: Fix intermittent failures.
|
||||||
|
|
||||||
2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
|
2010-11-12 Nathan Froyd <froydnj@codesourcery.com>
|
||||||
|
|
||||||
* gdb.stabs/gdb11479.exp: Use runto_main.
|
* gdb.stabs/gdb11479.exp: Use runto_main.
|
||||||
|
@ -52,7 +52,22 @@ if { [istarget *-*-linux*] } {
|
|||||||
# On Linux, gdbserver can also report the list of processes.
|
# On Linux, gdbserver can also report the list of processes.
|
||||||
# But only if xml support is compiled in.
|
# But only if xml support is compiled in.
|
||||||
if { $do_xml_test } {
|
if { $do_xml_test } {
|
||||||
gdb_test "info os processes" ".*pid +user +command.*1 +root +\[/a-z\]*init.*" "get process list"
|
# This is done in a way to avoid the timeout that can occur from
|
||||||
|
# applying .* regexp to large output. It is copied from
|
||||||
|
# gdb.base/maint.exp "maint check-symtabs".
|
||||||
|
send_gdb "info os processes\n"
|
||||||
|
gdb_expect {
|
||||||
|
-re ".*pid +user +command.*1 +root +\[/a-z\]*init" {
|
||||||
|
gdb_expect {
|
||||||
|
-re "$gdb_prompt $" {
|
||||||
|
pass "get process list"
|
||||||
|
}
|
||||||
|
timeout { fail "(timeout) get process list" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
-re ".*$gdb_prompt $" { fail "get process list" }
|
||||||
|
timeout { fail "(timeout) get process list" }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user