gdb: testsuite: add new gdb_attach to check "attach" command