From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27420 invoked by alias); 25 Apr 2011 21:58:15 -0000 Received: (qmail 27409 invoked by uid 22791); 25 Apr 2011 21:58:14 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 25 Apr 2011 21:58:00 +0000 Received: from wpaz21.hot.corp.google.com (wpaz21.hot.corp.google.com [172.24.198.85]) by smtp-out.google.com with ESMTP id p3PLvx7b007668 for ; Mon, 25 Apr 2011 14:57:59 -0700 Received: from ruffy.mtv.corp.google.com (ruffy.mtv.corp.google.com [172.18.118.116]) by wpaz21.hot.corp.google.com with ESMTP id p3PLvw40023763 for ; Mon, 25 Apr 2011 14:57:59 -0700 Received: by ruffy.mtv.corp.google.com (Postfix, from userid 67641) id AEED22461A8; Mon, 25 Apr 2011 14:57:58 -0700 (PDT) To: gdb@sourceware.org Subject: bogus extra code in gdbserver detach command support? Message-Id: <20110425215758.AEED22461A8@ruffy.mtv.corp.google.com> Date: Mon, 25 Apr 2011 21:58:00 -0000 From: dje@google.com (Doug Evans) X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-04/txt/msg00145.txt.bz2 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?