gdb/testsuite: accept script argument for mi_make_breakpoint_pending
authorAndrew Burgess <aburgess@redhat.com>
Tue, 4 Apr 2023 17:10:48 +0000 (18:10 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Fri, 14 Apr 2023 21:16:17 +0000 (22:16 +0100)
commit393946658fe67e95abe41d3de03b36d84563e873
tree256c8003a0a274ee62530f081304dcfe7740137b
parent5be45917f49846f4ce58d8b63473e96dff7d4e0f
gdb/testsuite: accept script argument for mi_make_breakpoint_pending

This commit changes mi_make_breakpoint_pending to accept the 'script'
and 'times' arguments.

I've then added a new test that makes use of 'scripts' in
gdb.mi/mi-pending.exp and gdb.mi/mi-dprintf-pending.exp.

There is already a test in gdb.mi/mi-pending.exp that uses the 'times'
argument -- previously this argument was being ignored, but is now
used.

Reviewed-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.mi/mi-dprintf-pending.exp
gdb/testsuite/gdb.mi/mi-pending.exp
gdb/testsuite/lib/mi-support.exp