gdb: testsuite: add new gdb_attach to check "attach" command
authorTiezhu Yang <yangtiezhu@loongson.cn>
Thu, 17 Mar 2022 02:22:14 +0000 (10:22 +0800)
committerTiezhu Yang <yangtiezhu@loongson.cn>
Wed, 23 Mar 2022 03:56:38 +0000 (11:56 +0800)
commita7e6a19e87f3d719ea23c65b580a6d9bca4ccab3
tree04ed1e52bf22ce91e4242dce8482824ed7d11fa7
parent11c19d73c35e6ce74a51302233199ddaa9551f09
gdb: testsuite: add new gdb_attach to check "attach" command

This commit adds new gdb_attach to centralize the failure checking of
"attach" command. Return 0 if attach failed, otherwise return 1.

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