[PATCH] Add remove-inferiors test
Pedro Alves
palves@redhat.com
Wed Aug 17 18:49:00 GMT 2016
On 08/17/2016 06:12 PM, Simon Marchi wrote:
> gdb/testsuite/ChangeLog:
>
> * gdb.multi/remove-inferiors.exp: New file.
> * gdb.multi/remove-inferiors.c: New file.
OK.
> +proc test_remove_inferiors { } {
> + global binfile
> +
> + clean_restart ${binfile}
> +
> + # Add another inferior and switch to it.
> + add_inferior 2 "add second inferior"
> + switch_to_inferior 2 "switch to second inferior"
> +
> + # Test that it is not possible to remove the current inferior.
> + gdb_test "remove-inferiors 2" \
> + "warning: Can not remove current symbol inferior 2." \
> + "can't remove current inferior"
Eh, this "symbol inferior" reference sounds like a bad
global replace on my part, years ago. The original multi-exec
support called program spaces "symbol spaces" instead.
Follow up patch to remove that stray "symbol" preapproved.
Thanks,
Pedro Alves
More information about the Gdb-patches
mailing list