This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add remove-inferiors test


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]