Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Andrew Burgess <andrew.burgess@embecosm.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb/remote: Don't use vKill if multi-process features are disabled
Date: Thu, 17 Mar 2016 22:21:00 -0000	[thread overview]
Message-ID: <56EB2DD1.4090103@redhat.com> (raw)
In-Reply-To: <1458252144-3496-1-git-send-email-andrew.burgess@embecosm.com>

On 03/17/2016 10:02 PM, Andrew Burgess wrote:
> The below was tested using native gdbserver on x86-64 Fedora Linux
> with no regressions.
> 
> ---
> 
> The gdb remote protocol documentation is clear that the vKill command
> should not be used unless the multi-process feature is reported as
> supported by the remote target.
> 
> Currently within gdb we check to see if the vKill packet is enabled or
> not before using the vKill command, however, the only way to disable
> vKill is from the gdb console, the result is that vKill will be sent to
> targets that don't support it, and never claimed to support it.

Why was that a problem?

> 
> After this commit I guard use of vKill with a check to see if the
> multi-process feature is enabled or not.  I have removed the ability to
> disable vkill specifically from the console, the user must now disable
> the whole multi-process feature set as one.
> 
> I did consider leaving the separate vKill control switch in addition to
> the multi-process control switch, but this seemed unnecessary, and I
> worried that in the future another bug could be introduced where
> PACKET_vKill was used to guard sending a vKill.

Please leave the control switch in.  It's useful for testing, to emulate
targets that don't support the packet.

Thanks,
Pedro Alves


  reply	other threads:[~2016-03-17 22:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-17 22:03 Andrew Burgess
2016-03-17 22:21 ` Pedro Alves [this message]
2016-03-17 23:27   ` Andrew Burgess
2016-03-18  0:12     ` Pedro Alves
2016-03-18  6:28       ` Andrew Burgess

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=56EB2DD1.4090103@redhat.com \
    --to=palves@redhat.com \
    --cc=andrew.burgess@embecosm.com \
    --cc=gdb-patches@sourceware.org \
    /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