From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25432 invoked by alias); 15 Mar 2011 19:18:43 -0000 Received: (qmail 25421 invoked by uid 22791); 15 Mar 2011 19:18:42 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 Mar 2011 19:18:38 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p2FJISNR030246 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 15 Mar 2011 15:18:28 -0400 Received: from host1.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p2FJIPWM026564 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 15 Mar 2011 15:18:27 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p2FJIPSO002196; Tue, 15 Mar 2011 20:18:25 +0100 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p2FJIOPO002188; Tue, 15 Mar 2011 20:18:24 +0100 Date: Tue, 15 Mar 2011 19:28:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: gdb-patches@sourceware.org, Daniel Jacobowitz Subject: Re: [patch] [gdbserver] Fix multi-GB error log files Message-ID: <20110315191824.GA1912@host1.jankratochvil.net> References: <20110306115536.GA31532@host1.jankratochvil.net> <201103151742.56925.pedro@codesourcery.com> <20110315180423.GA28968@host1.jankratochvil.net> <201103151836.02729.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201103151836.02729.pedro@codesourcery.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-03/txt/msg00812.txt.bz2 On Tue, 15 Mar 2011 19:36:02 +0100, Pedro Alves wrote: > I'm confused. Backwards compatibility would be broken by the listen > socket change. But that socket change looked orthogonal > to the --once stuff? Won't either of the changes fix the problem? If people depend on: > > On Tue, 15 Mar 2011 18:42:56 +0100, Pedro Alves wrote: > > > you can spawn several instances of > > > gdbserver + connect, while only needing to open one port in > > > your firewall. Or perhaps IDEs are relying on that when > > > spawning the second (and nth) connections to the same > > > board (while leaving the previous sessions still running). then it is already racy - at least for multiple users sharing the same target box. But it is IMO racy even on fast enough clicking in Eclipse by a single user. To remove the racy case some kind of backward compatibility with current setups has to be broken. If you want to keep the racy behavior for users (for its other benefits) I can propose a patch fixing only the testsuite and not affecting the normal gdbserver executions by users in any way. Thanks, Jan