Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Simon Marchi <simon.marchi@ericsson.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Add remove-inferiors test
Date: Wed, 17 Aug 2016 18:49:00 -0000	[thread overview]
Message-ID: <93f11fe0-3693-6dc9-0865-20e6fa49f44c@redhat.com> (raw)
In-Reply-To: <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


  reply	other threads:[~2016-08-17 18:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-17 17:18 Simon Marchi
2016-08-17 18:49 ` Pedro Alves [this message]
2016-08-17 20:07   ` Simon Marchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=93f11fe0-3693-6dc9-0865-20e6fa49f44c@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=simon.marchi@ericsson.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox