gdb: testsuite: print explicit test result in can_spawn_for_attach
authorTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 1 Mar 2022 07:03:00 +0000 (15:03 +0800)
committerTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 1 Mar 2022 07:21:11 +0000 (15:21 +0800)
commit863cd1c236deac344743156b58e28e79a7677e6f
treef4dde106db6d2e860ada66bb53ba2db160e54734
parentd3827c8d2de053f460ad90187593263fc273fe7f
gdb: testsuite: print explicit test result in can_spawn_for_attach

In the current code, there is no test result when execute the following
commands:

  $ make check-gdb TESTS="gdb.base/attach-pie-noexec.exp" RUNTESTFLAGS="--target_board=remote-gdbserver-on-localhost"
  $ make check-gdb TESTS="gdb.base/attach-pie-noexec.exp" RUNTESTFLAGS="--target_board=native-gdbserver"

It is better to print explicit test result in can_spawn_for_attach.

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
gdb/testsuite/lib/gdb.exp