From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4601 invoked by alias); 30 Apr 2008 19:38:24 -0000 Received: (qmail 4584 invoked by uid 22791); 30 Apr 2008 19:38:22 -0000 X-Spam-Check-By: sourceware.org Received: from bluesmobile.specifix.com (HELO bluesmobile.specifix.com) (216.129.118.140) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 30 Apr 2008 19:37:57 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id DE6FE3BEE9; Wed, 30 Apr 2008 12:37:55 -0700 (PDT) Subject: Re: linux native, switch forks, always have a thread From: Michael Snyder To: Pedro Alves Cc: gdb-patches@sourceware.org In-Reply-To: <200804301536.30066.pedro@codesourcery.com> References: <200804301536.30066.pedro@codesourcery.com> Content-Type: text/plain Date: Wed, 30 Apr 2008 21:26:00 -0000 Message-Id: <1209584275.4615.384.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-7.fc7) Content-Transfer-Encoding: 7bit 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: 2008-04/txt/msg00714.txt.bz2 On Wed, 2008-04-30 at 15:36 +0100, Pedro Alves wrote: > I'd missed this case when I made linux native always have a thread. > > It's not perfect in the sense that switching forks ("restart"/"fork", > not follow-fork-mode) in multi-threaded apps doesn't handle > multi-threading correctly yet, but that is an already existing > problem. We shall be getting back to that in a few weeks > for multi-process support. I think you'll find that fork is more-or-less undefined in the context of a multi-threaded program, meaning that it's not terribly urgent that we try to handle this case.