From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 813 invoked by alias); 22 Apr 2019 17:29:01 -0000 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 Received: (qmail 803 invoked by uid 89); 22 Apr 2019 17:29:01 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=-10.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=andr=c3=a9, Andr=c3=a9, HX-Languages-Length:805, andr?= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 22 Apr 2019 17:29:00 +0000 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 35E9A37EEF; Mon, 22 Apr 2019 17:28:59 +0000 (UTC) Received: from [127.0.0.1] (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id CA48427097; Mon, 22 Apr 2019 17:28:56 +0000 (UTC) From: Pedro Alves Subject: Re: [RFA 2/2][master only] gdb/windows-nat.c: Get rid of main_thread_id global To: =?UTF-8?B?QW5kcsOpIFDDtm5pdHo=?= References: <1555453982-77808-1-git-send-email-brobecker@adacore.com> <1555453982-77808-3-git-send-email-brobecker@adacore.com> <83imvcg0ud.fsf@gnu.org> <20190417173842.GA14817@adacore.com> <83wojseb9c.fsf@gnu.org> <20190417221729.GA5839@adacore.com> <9c75d158-6a73-d414-4cb2-17297d4576c6@redhat.com> <20190419204326.GA9601@adacore.com> <20190422152327.GA10697@klara.mpi.htwm.de> Cc: Joel Brobecker , Eli Zaretskii , gdb-patches@sourceware.org Message-ID: <7f39cca0-c200-430e-e885-32cc347207d0@redhat.com> Date: Mon, 22 Apr 2019 17:29:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20190422152327.GA10697@klara.mpi.htwm.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-SW-Source: 2019-04/txt/msg00423.txt.bz2 On 4/22/19 4:23 PM, André Pönitz wrote: > On Mon, Apr 22, 2019 at 03:24:46PM +0100, Pedro Alves wrote: >> I don't see the asymmetry (silent at creation, not silent at destruction) >> in this particular case as surprising [...] > > It's not surprising, but it's inconsistent > and causes extra work in > cases one wants to mechanically examine such output. I'm curious about what extra work you're thinking of. Can't think of anything significant. But do note that this discussion does not affect MI. So what do you propose? My proposal kept these two ideas in mind: - be quiet wrt to threads with single-threaded programs. - inform the user the main thread exited while other threads stay running. Thanks, Pedro Alves