A following patch will make GDB put spawned inferiors in their own
terminal/session. A consequence of that is that if you do "run", and
then "detach", GDB closes the terminal, so expecting inferior output
after detach no longer works, the inferior is alive, but its output
goes nowhere.
There's only one testcase that expects output out of an inferior after
detach. Tweak it to output to GDB's terminal instead.
gdb/testsuite/ChangeLog:
yyyy-mm-dd Pedro Alves <pedro@palves.net>
* gdb.threads/process-dies-while-detaching.exp: Issue "tty
/dev/tty" before starting program.
Change-Id: Ic62bca178295763fb9c47657ee459fe715f7865e
global binfile
clean_restart ${binfile}
+ gdb_test_no_output "tty /dev/tty"
if ![runto_main] {
fail "can't run to main"
global binfile decimal
clean_restart ${binfile}
+ gdb_test_no_output "tty /dev/tty"
if ![runto_main] {
fail "can't run to main"
global binfile
clean_restart ${binfile}
+ gdb_test_no_output "tty /dev/tty"
if ![runto_main] {
fail "can't run to main"