public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* bogus extra code in gdbserver detach command support?
@ 2011-04-25 21:58 Doug Evans
  2011-04-26 10:37 ` Pedro Alves
  0 siblings, 1 reply; 2+ messages in thread
From: Doug Evans @ 2011-04-25 21:58 UTC (permalink / raw)
  To: gdb

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?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-26 10:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-25 21:58 bogus extra code in gdbserver detach command support? Doug Evans
2011-04-26 10:37 ` Pedro Alves

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).