gdb/testsuite: improve MI support for inferior specific breakpoints
authorAndrew Burgess <aburgess@redhat.com>
Tue, 22 Aug 2023 17:11:11 +0000 (18:11 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Wed, 23 Aug 2023 08:07:35 +0000 (09:07 +0100)
commitadc5f8b99a9d1ec96b5bf2492ad5516db580839a
tree90482fba2de4c8806bd74c5a32c1f0fac59e8fad
parentf29ab2e0e350a4b382a1e4eb1b41c28564d83e94
gdb/testsuite: improve MI support for inferior specific breakpoints

In this commit:

  commit b080fe54fb3414b488b8ef323c6c50def061f918
  Date:   Tue Nov 8 12:32:51 2022 +0000

      gdb: add inferior-specific breakpoints

limited support was added in lib/mi-support.exp to help with testing
of inferior specific breakpoints.

Though the changes that were added were not wrong, while working on a
later patch, I realised that I had added the support in the wrong
place -- I only added support to mi_make_breakpoint_multi, when really
I should have added the support to mi_make_breakpoint_1, which is used
by all of the MI procs that create breakpoints.

This commit moves the support to mi_make_breakpoint_1, and updates all
the procs that use mi_make_breakpoint_1 to accept, and then pass
through, and (optional) inferior argument.  This will make it much
easier to write MI tests for inferior specific breakpoints.

There's no change in what is tested after this commit.
gdb/testsuite/lib/mi-support.exp