From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86678 invoked by alias); 21 May 2019 15:45:35 -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 86585 invoked by uid 89); 21 May 2019 15:45:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=H*Ad:U*tom, one's, wanting X-HELO: gateway21.websitewelcome.com Received: from gateway21.websitewelcome.com (HELO gateway21.websitewelcome.com) (192.185.45.250) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 21 May 2019 15:45:26 +0000 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway21.websitewelcome.com (Postfix) with ESMTP id 4748D400ECCB1 for ; Tue, 21 May 2019 10:45:23 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id T6x9hDy5R4FKpT6x9hakLl; Tue, 21 May 2019 10:45:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=gOABLfFex7NQx3zoOChlftwhJzopoGjC4SpugZICGTo=; b=dFEsSfoX8AzQ+bo8IdVud01erz L5AQGFRNBOjafHn91VzJmYh8n2IZJmV1hmfioGULcdUIPI3ApVduDwmuzBWmazRgV/eBtFZx/Dx8C ytMYA2xuFLRTNqcUiK9vbl9in; Received: from nat.gnat.com ([205.232.38.191]:34382 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1hT6x8-0013Qr-VJ; Tue, 21 May 2019 10:45:23 -0500 From: Tom Tromey To: Andrew Burgess Cc: Tom Tromey , Philippe Waroquiers , gdb-patches@sourceware.org Subject: Re: [PATCH v2 0/8] Demangle minimal symbol names in worker threads References: <20190518210010.27697-1-tom@tromey.com> <1558274338.1454.13.camel@skynet.be> <87a7figtpz.fsf@tromey.com> <20190521073520.GD2568@embecosm.com> Date: Tue, 21 May 2019 15:45:00 -0000 In-Reply-To: <20190521073520.GD2568@embecosm.com> (Andrew Burgess's message of "Tue, 21 May 2019 08:35:20 +0100") Message-ID: <87a7ffg6b2.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2019-05/txt/msg00474.txt.bz2 >>>>> "Andrew" == Andrew Burgess writes: >> I think that most users don't know what most programs do under the hood; >> nor should they need to. I suppose in some extreme situation maybe >> someone would want to do this, but disabling threading in this case >> should be good enough. Users like this should probably use gdbserver >> instead though. Andrew> Sorry for being really slow, but how does gdbserver help here? The Andrew> threads are to help GDB parse the symbols/debug information from the Andrew> ELF, right? In most cases GDB will still be parsing the symbols/debug Andrew> from the ELF at the GDB end, not the gdbserver end. My understanding is that the scenario is wanting to limit threads so that one can run gdb on some resource-constrained machine. In this situation it's better to run gdbserver on the limited machine and run gdb on one's desktop. >> Guile creates threads by default. In general gdb can't control the >> threads made by either Guile or Python, because those can be made by >> scripts created at runtime. Andrew> Sure, but I think there's a difference between threads the user has Andrew> specifically _asked_ GDB to create (through a script) and threads that Andrew> are started to support some builtin GDB feature. It's mildly incorrect to say that the user asked for these threads. The guile ones are created at startup regardless. Also, due to auto-loading, the user may not be aware of precisely what Python is running in gdb or what it is doing; though in this case it does seem pretty unlikely for threading to be used. I'll change the setting to control the number of threads. Tom