gdb/testsuite: Make hook-stop.exp ignore termination message from GDB stub
authorSandra Loosemore <sandra@codesourcery.com>
Tue, 5 Sep 2023 18:48:22 +0000 (18:48 +0000)
committerSandra Loosemore <sandra@codesourcery.com>
Tue, 5 Sep 2023 18:48:22 +0000 (18:48 +0000)
commita006bc9c37e95b4afaf85715cc54fe57b3300ccd
treee9feaf2108e815ef4ade82721dd1c6cb4f21f316
parent8de9b683a5ff28e3370777ed4396a14093910fc2
gdb/testsuite: Make hook-stop.exp ignore termination message from GDB stub

When a GDB stub is run via "target remote |", it sometimes produces
extra output that ends up mixed with GDB's own output.  For example,
QEMU's built-in GDB stub responds to the vKill packet by printing

nios2-elf-qemu-system: QEMU: Terminated via GDBstub

before exiting.

This patch fixes the regexp in gdb.base/hook-stop.exp to allow such
messages between GDB's "continuing" and "Inferior killed" messages.

Reviewed-By: Tom Tromey <tom@tromey.com>
Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.base/hook-stop.exp