From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12273 invoked by alias); 31 Aug 2006 21:49:36 -0000 Received: (qmail 12261 invoked by uid 22791); 31 Aug 2006 21:49:34 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 31 Aug 2006 21:49:25 +0000 Received: from kahikatea.snap.net.nz (p202-124-124-61.snap.net.nz [202.124.124.61]) by viper.snap.net.nz (Postfix) with ESMTP id D41457B856E; Fri, 1 Sep 2006 09:49:21 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 310B0BE446; Fri, 1 Sep 2006 09:47:11 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17655.22749.599881.560771@kahikatea.snap.net.nz> Date: Thu, 31 Aug 2006 21:49:00 -0000 To: Mark Kettenis Cc: drow@false.org, gdb@sources.redhat.com Subject: Re: Merge of nickrob-async-20060513 to mainline? In-Reply-To: <200608312102.k7VL2TAe017778@elgar.sibelius.xs4all.nl> References: <17652.63229.637451.185345@kahikatea.snap.net.nz> <20060830023335.GA6377@nevyn.them.org> <17653.930.196634.143646@kahikatea.snap.net.nz> <200608312102.k7VL2TAe017778@elgar.sibelius.xs4all.nl> X-Mailer: VM 7.19 under Emacs 22.0.50.8 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00289.txt.bz2 > > Also it still uses pthreads. You said previously that it should be done > > in one process and, following a remark from Jim Ingham, that ptrace is > > non-blocking. AFAICS the problem is that wait *is* blocking and I can't > > see of a way to deal with that without using another thread. > > I've stated before that I think that making gdb multi-threaded is a > seriously bad idea. I don't know enough about threads to argue a case for them, but I'd like to note that: 1) Daniel thinks that he can get the same functionality (on GNU/Linux at least) without using them. 2) Apple's GDB is multi-threaded and this doesn't seem to cause them problems. 3) It would only be multi-threaded, at most, for the specific platforms that asynchronous behaviour was implemented and only when invoked that way. It could even be added as a compile option. 4) GDB appears to already to be a threaded application (at least, for me, it uses the libthread_db library). -- Nick http://www.inet.net.nz/~nickrob