This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Add remove-inferiors test
- From: Pedro Alves <palves at redhat dot com>
- To: Simon Marchi <simon dot marchi at ericsson dot com>, gdb-patches at sourceware dot org
- Date: Wed, 17 Aug 2016 19:49:49 +0100
- Subject: Re: [PATCH] Add remove-inferiors test
- Authentication-results: sourceware.org; auth=none
- References: <20160817171239.24022-1-simon.marchi@ericsson.com>
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