From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17204 invoked by alias); 26 Oct 2009 21:34:47 -0000 Received: (qmail 17184 invoked by uid 22791); 26 Oct 2009 21:34:46 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS 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; Mon, 26 Oct 2009 21:34:39 +0000 Received: (qmail 12372 invoked from network); 26 Oct 2009 21:34:37 -0000 Received: from unknown (HELO orlando) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 26 Oct 2009 21:34:37 -0000 From: Pedro Alves To: Paul Pluzhnikov Subject: Re: [patch] Fix for PR gdb/10757 Date: Mon, 26 Oct 2009 21:34:00 -0000 User-Agent: KMail/1.9.10 Cc: gdb-patches@sourceware.org References: <20091015191037.4091D76761@ppluzhnikov.mtv.corp.google.com> <200910252354.55084.pedro@codesourcery.com> <8ac60eac0910261425x363afd0bp43299ab0b18e576a@mail.gmail.com> In-Reply-To: <8ac60eac0910261425x363afd0bp43299ab0b18e576a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200910262135.00507.pedro@codesourcery.com> 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: 2009-10/txt/msg00652.txt.bz2 On Monday 26 October 2009 21:25:39, Paul Pluzhnikov wrote: > I wonder if it *could* take some lock that would make all other threads > wait in pthread_create -- after all, thread_db does have access to inferior > via ps_pdwrite. That would certainly make the interface cleaner, at a cost > of an extra global lock on pthread_create path. the problem with that is that gdb can stop all threads while one of them is holding the lock --- you'd have to consider the possibility of gdb deadlocking. -- Pedro Alves