From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2934 invoked by alias); 15 Mar 2011 17:48:26 -0000 Received: (qmail 2903 invoked by uid 22791); 15 Mar 2011 17:48:24 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 Mar 2011 17:48:18 +0000 Received: (qmail 24547 invoked from network); 15 Mar 2011 17:48:17 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 15 Mar 2011 17:48:17 -0000 Date: Tue, 15 Mar 2011 18:04:00 -0000 From: Daniel Jacobowitz To: Pedro Alves Cc: gdb-patches@sourceware.org, Jan Kratochvil Subject: Re: [patch] [gdbserver] Fix multi-GB error log files Message-ID: <20110315174813.GW25422@caradoc.them.org> References: <20110306115536.GA31532@host1.jankratochvil.net> <201103151742.56925.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201103151742.56925.pedro@codesourcery.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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/msg00801.txt.bz2 On Tue, Mar 15, 2011 at 05:42:56PM +0000, Pedro Alves wrote: > On Sunday 06 March 2011 11:55:36, Jan Kratochvil wrote: > > This change introduces the listening port to remain open during the default > > gdbserver run for users (when "--once" is not used). This is a change where > > the user can mistakenly connect to the "dead" but still listening port. > > It seems that this change stands on its own independently from > the --once stuff. I'm worried about whether this breaks use > cases. E.g., as is, 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). > > Daniel, do you have an opinion? I don't have much of an opinion on this. The current behavior is somewhat useful; if gdbserver is running, you can't connect to it. Jan has correctly identified a potential problem if something "steals" the port while gdbserver is still running, but nothing hits it in practice except the testsuite. -- Daniel Jacobowitz Mentor Graphics