2012-02-02 Pedro Alves <palves@redhat.com>
* gdb.gdb/complaints.exp: Skip if gdb,noinferiorio is set. * gdb.gdb/selftest.exp (test_with_self): Handle gdb,noinferiorio.
This commit is contained in:
parent
5f8cefd757
commit
c0b9f2c6e8
|
@ -1,3 +1,8 @@
|
|||
2012-02-02 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* gdb.gdb/complaints.exp: Skip if gdb,noinferiorio is set.
|
||||
* gdb.gdb/selftest.exp (test_with_self): Handle gdb,noinferiorio.
|
||||
|
||||
2012-02-02 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* gdb.base/term.exp: Rewrite.
|
||||
|
|
|
@ -23,6 +23,11 @@ if { [is_remote target] || ![isnative] } then {
|
|||
return
|
||||
}
|
||||
|
||||
if [target_info exists gdb,noinferiorio] {
|
||||
verbose "Skipping because of no inferiorio capabilities."
|
||||
return
|
||||
}
|
||||
|
||||
proc setup_test { executable } {
|
||||
global gdb_prompt
|
||||
global timeout
|
||||
|
|
|
@ -394,9 +394,18 @@ proc test_with_self { executable } {
|
|||
}
|
||||
|
||||
# start the "xgdb" process
|
||||
gdb_test_multiple "continue" "xgdb is at prompt" {
|
||||
if [target_info exists gdb,noinferiorio] {
|
||||
# Maybe testing with a local extended-remote gdbserver. With
|
||||
# no way to interact with inferior GDB, all we can do is let
|
||||
# it run.
|
||||
send_gdb "continue\n"
|
||||
# Wait a bit while the inferior gdb gets to its prompt.
|
||||
sleep 1
|
||||
} else {
|
||||
set test "xgdb is at prompt"
|
||||
gdb_test_multiple "continue" $test {
|
||||
-re "GNU gdb \[0-9\.\]*.*Copyright \\(C\\) \[0-9\]* Free Software Foundation, Inc.*License GPLv3\\+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.*This is free software: you are free to change and redistribute it.*There is NO WARRANTY, to the extent permitted by law. Type \"show copying\".*and \"show warranty\" for details.*This GDB was configured as .*$gdb_prompt $" {
|
||||
pass "xgdb is at prompt"
|
||||
pass $test
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -406,6 +415,7 @@ proc test_with_self { executable } {
|
|||
pass "Set xgdb prompt"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# kill the xgdb process
|
||||
set description "send ^C to child process"
|
||||
|
|
Loading…
Reference in New Issue