]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite/dap: make dap_wait_for_event_and_check return preceding messages
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 6 Jan 2023 18:27:14 +0000 (13:27 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 26 Jan 2023 19:31:33 +0000 (14:31 -0500)
commit8abd06e066be7ad41d608b500187e90736c9e8fa
tree379367ad1bbf189c033293954e5c5256d4f84ff7
parent59db4c934f9931d0c77a36cac1f9d6402ab7496d
gdb/testsuite/dap: make dap_wait_for_event_and_check return preceding messages

In the following patch, I change gdb.dap/basic-dap.exp such that after
waiting for some event, it checks if it received another event
meanwhile.  To help with this, make dap_wait_for_event_and_check and
_dap_dap_wait_for_event return a list with everything received before
the event of interest.  This is similar to what
dap_check_request_and_response returns.

Change-Id: I85c8980203a2dec833937e7552c2196bc137935d
gdb/testsuite/lib/dap-support.exp