From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24480 invoked by alias); 27 Apr 2008 15:34:45 -0000 Received: (qmail 24470 invoked by uid 22791); 27 Apr 2008 15:34:44 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 27 Apr 2008 15:34:24 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id CADBA983D9; Sun, 27 Apr 2008 15:34:22 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id A537C98371; Sun, 27 Apr 2008 15:34:22 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1Jq8tS-0003pS-06; Sun, 27 Apr 2008 11:34:22 -0400 Date: Sun, 27 Apr 2008 18:25:00 -0000 From: Daniel Jacobowitz To: Mark Kettenis Cc: nickrob@snap.net.nz, vladimir@codesourcery.com, gdb-patches@sources.redhat.com Subject: Re: [RFA] Report the main thread. Message-ID: <20080427153421.GA14695@caradoc.them.org> Mail-Followup-To: Mark Kettenis , nickrob@snap.net.nz, vladimir@codesourcery.com, gdb-patches@sources.redhat.com References: <200804262005.18646.vladimir@codesourcery.com> <200804261617.m3QGH9dv027362@brahms.sibelius.xs4all.nl> <20080426185448.GA14511@caradoc.them.org> <18451.43847.127294.906184@kahikatea.snap.net.nz> <20080426224211.GA26195@caradoc.them.org> <18451.45857.500742.342261@kahikatea.snap.net.nz> <20080427135246.GA9333@caradoc.them.org> <200804271422.m3REMxVF009472@brahms.sibelius.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200804271422.m3REMxVF009472@brahms.sibelius.xs4all.nl> User-Agent: Mutt/1.5.17 (2007-12-11) 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/msg00623.txt.bz2 On Sun, Apr 27, 2008 at 04:22:59PM +0200, Mark Kettenis wrote: > Seriously though, in GDB we've always only populated the threads list > if a program actually has threads. An MI client will have to deal > with that fact. If it insists on providing a threaded view of the > world, it needs to fake up a main thread. Since it already has to do > that for non-threaded programs, why would having a false thread create > event for the main thread help? Personally I think that's a mistake. And if we don't want to change the remaining backends - some of them already populated the first thread, IIRC, and Linux now does - then maybe we should change MI to fake up the thread. It seems like a silly thing to make each client do individually. The "always a frame" work has made parts of GDB much clearer; I think "always a thread" would too. The big win would be exactly what Pedro mentioned - it would simplify execution control. -- Daniel Jacobowitz CodeSourcery