MI: mi_runto -pending
authorPedro Alves <pedro@palves.net>
Fri, 8 Jul 2022 10:37:17 +0000 (11:37 +0100)
committerLancelot SIX <lsix@lancelotsix.com>
Tue, 26 Jul 2022 07:22:10 +0000 (08:22 +0100)
commit60cd08d40309a2b4ce1daae84074893e6303ad17
treef3297ca44aeaaa10d49871dd3b31a80e6c5a9266
parent8e883b5e112208afe488c529a1fb82116ff729f1
MI: mi_runto -pending

With the CLI testsuite's runto proc, we can pass "allow-pending" as an
option, like:

  runto func allow-pending

That is currently not possible with MI's mi_runto, however.  This
patch makes it possible, by adding a new "-pending" option to
mi_runto.

A pending breakpoint shows different MI attributes compared to a
breakpoint with a location, so the regexp returned by
mi_make_breakpoint isn't suitable.  Thus, add a new
mi_make_breakpoint_pending proc for pending breakpoints.

Tweak mi_runto to let it take and pass down arguments.

Change-Id: I185fef00ab545a1df2ce12b4dbc3da908783a37c
gdb/testsuite/lib/mi-support.exp