Enable gdb.base/inferior-died.exp on is_remote target boards
authorPedro Alves <palves@redhat.com>
Thu, 12 Oct 2017 17:36:08 +0000 (18:36 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 12 Oct 2017 17:39:13 +0000 (18:39 +0100)
commit4e04f0450f83d8d0ad08579b5e6c8b4e8a8e693f
tree80075ec7a280f03469d72a515dd070aecfd2497a
parent871a186e41aeb7f966c6570b8f1659aec9d2c15d
Enable gdb.base/inferior-died.exp on is_remote target boards

We support follow-fork in the remote protocol nowadays.

Also, the right way to enable non-stop mode is to do it before
connecting, and for use_gdb_stub boards, that means we have to do it
at gdb_load time.  The "modern" pattern for that is to pass non-stop
in GDBFLAGS.

This makes the test pass with --target_board=native-gdbserver.

gdb/testsuite/ChangeLog:
2017-10-12  Pedro Alves  <palves@redhat.com>
    Simon Marchi <simon.marchi@polymtl.ca>

* gdb.base/inferior-died.exp: Remove is_remote and isnative
checks.  Use build_executable + clean_restart instead of
prepare_for_testing.  Pass "set non-stop on" via GDBFLAGS instead
of enabling non-stop after starting gdb.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/inferior-died.exp