gdb/testsuite/

* lib/gdb.exp (gdb_run_cmd): Return on $gdb_prompt.
	(runto): Catch "The target does not support running in non-stop mode.".
This commit is contained in:
Jan Kratochvil 2010-06-11 21:58:20 +00:00
parent dddb0e800c
commit 8e46892cd5
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
* lib/gdb.exp (gdb_run_cmd): Return on $gdb_prompt.
(runto): Catch "The target does not support running in non-stop mode.".
2010-06-11 Michael Snyder <msnyder@vmware.com>
* gdb.base/setshow.exp (set language asm): Don't use

View File

@ -290,6 +290,9 @@ proc gdb_run_cmd {args} {
exp_continue
}
-notransfer -re "Starting program: \[^\r\n\]*" {}
-notransfer -re "$gdb_prompt $" {
# There is no more input expected.
}
}
}
@ -416,6 +419,10 @@ proc runto { function args } {
-re "Breakpoint \[0-9\]*, \[0-9xa-f\]* in .*$gdb_prompt $" {
return 1
}
-re "The target does not support running in non-stop mode.\r\n$gdb_prompt $" {
unsupported "Non-stop mode not supported"
return 0
}
-re "$gdb_prompt $" {
fail "running to $function in runto"
return 0