[gdb/testsuite] Fix gdb.cp/annota{2,3}.exp for native-extended-gdbserver
authorTom de Vries <tdevries@suse.de>
Wed, 22 Mar 2023 08:37:41 +0000 (09:37 +0100)
committerTom de Vries <tdevries@suse.de>
Wed, 22 Mar 2023 08:37:41 +0000 (09:37 +0100)
commit14662762048c2519af25b0028a091097d7610ccc
tree95b130a8cfac1da13b13464a547c611248ab09db
parent722c45960343adfadb41c0d154c4d43611828e32
[gdb/testsuite] Fix gdb.cp/annota{2,3}.exp for native-extended-gdbserver

When running test-cases gdb.cp/annota{2,3}.exp with target board
native-extended-gdbserver, we run into a few FAILs, due to the test-cases
trying to match inferior output together with gdb output.

Fix this by ignoring the inferior output in this case.

Tested on x86_64-linux.
gdb/testsuite/gdb.cp/annota2.exp
gdb/testsuite/gdb.cp/annota3.exp