[gdb/testsuite] Detect trailing ^C/^D in command
authorTom de Vries <tdevries@suse.de>
Mon, 10 Oct 2022 14:24:38 +0000 (16:24 +0200)
committerTom de Vries <tdevries@suse.de>
Mon, 10 Oct 2022 14:24:38 +0000 (16:24 +0200)
commitc52ce603561128ca3b9bc626f27abd8cda09b4d6
treecb691ce5af99359b995c5b22e6244d2db2cdd5b8
parented6cd15957b80502410b771e080a88b2e4c949dd
[gdb/testsuite] Detect trailing ^C/^D in command

Detect a trailing ^C/^D in the command argument of gdb_test_multiple, and
error out.

Tested on x86_64-linux.
gdb/testsuite/gdb.testsuite/gdb-test.exp
gdb/testsuite/lib/gdb.exp