public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: dje@google.com (Doug Evans)
To: gdb@sourceware.org
Subject: bogus extra code in gdbserver detach command support?
Date: Mon, 25 Apr 2011 21:58:00 -0000	[thread overview]
Message-ID: <20110425215758.AEED22461A8@ruffy.mtv.corp.google.com> (raw)

Hi.

Under what circumstances does this code in server.c actually do something?

	      /* If we are attached, then we can exit.  Otherwise, we
		 need to hang around doing nothing, until the child is
		 gone.  */
	      for_each_inferior (&all_processes,
				 join_inferiors_callback);

This is for the 'D' packet.
AIUI, this code will already have emptied all_processes:

      if (detach_inferior (pid) != 0)
	write_enn (own_buf);

Or can multiprocess debugging be used without the extended remote protocol?

             reply	other threads:[~2011-04-25 21:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-25 21:58 Doug Evans [this message]
2011-04-26 10:37 ` Pedro Alves

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=20110425215758.AEED22461A8@ruffy.mtv.corp.google.com \
    --to=dje@google.com \
    --cc=gdb@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).