From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta38.uswest2.a.cloudfilter.net (omta38.uswest2.a.cloudfilter.net [35.89.44.37]) by sourceware.org (Postfix) with ESMTPS id 9AB253858D28 for ; Sun, 10 Dec 2023 17:19:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9AB253858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9AB253858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=35.89.44.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702228790; cv=none; b=nM/3ykY1LpCq5kymxgFz5vx8YHox5/lzfRN1ZlqX1UGdhqlBJQC6C5ESzlUC+xrkNZE97rusilvLdAR8A1Pj83WoOf6RerxEPTWOO13aUBtSOnba8PXS9tDgnQ668+P27OXgScU8KMpmf9zk8OuahJarcyYxy1wsFD5Kc6BFi6I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702228790; c=relaxed/simple; bh=HXJRapRZd/ODXaBfTOKj/hfJUPJZSLnqsYwkxbMDqyc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=RoeLyXzpwrDC3/UiwJO5cUb+1mbLTs4/cAhPEhiaV4oPy3w2VZXr+UAwGZ3ERMktXLorjRrT3g/hzy7m3u3J9ni0KONM6cqTUlkIfRBk6wzs578G7FJqnNvVwzI3F6ZLUE+q+V4+PC+GNLw1yxGiJ8enTS+Au9OIFI8rzJLwqtw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-6010a.ext.cloudfilter.net ([10.0.30.248]) by cmsmtp with ESMTPS id CJ8irQIP1Vly7CNT1rWAl4; Sun, 10 Dec 2023 17:19:47 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id CNT0rjQ2F8vT0CNT1rxEUt; Sun, 10 Dec 2023 17:19:47 +0000 X-Authority-Analysis: v=2.4 cv=ffi+dmcF c=1 sm=1 tr=0 ts=6575f333 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=OWjo9vPv0XrRhIrVQ50Ab3nP57M=:19 a=dLZJa+xiwSxG16/P+YVxDGlgEgI=:19 a=e2cXIFwxEfEA:10 a=Qbun_eYptAEA:10 a=zstS-IiYAAAA:8 a=fW5AxgxlSFe1EusjnJ4A:9 a=4G6NA9xxw8l3yy4pmD5M:22 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=+2NUiFjxyzT3gidHg/HGI2h2q4U5rYpCDUPlI6rxGb8=; b=SfUQXv6++snLW/+5dEnN3/eQ5y 3WZUBpNKPCX6aABBFo7c85Ty99AUW3/KJpz65g6h54319KWUQ4I8VtAg0mQWRRSz90XiebcrVZRZk J23jUgyU3vm3Nvjd2qFlwpWJT; Received: from [198.59.47.65] (port=34498 helo=prentzel) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1rCNT0-002Fr2-1x; Sun, 10 Dec 2023 10:19:46 -0700 From: Tom Tromey To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: [PATCH v3 00/18] Index DWARF in the background References: <20231122-t-bg-dwarf-reading-v3-0-fc3180de63c4@tromey.com> X-Attribution: Tom Date: Sun, 10 Dec 2023 10:19:44 -0700 In-Reply-To: <20231122-t-bg-dwarf-reading-v3-0-fc3180de63c4@tromey.com> (Tom Tromey's message of "Wed, 22 Nov 2023 22:32:09 -0700") Message-ID: <87h6kq6klr.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 198.59.47.65 X-Source-L: No X-Exim-ID: 1rCNT0-002Fr2-1x X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (prentzel) [198.59.47.65]:34498 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfNUE+COGfcpNrxsPz7zwR1CjgCG0kIlIh+g68xjY7U7fY1uNDQ8o08JdPSuTzlWpRUzq4U0FXzqE+VuKVNNvVbYqqnpZ9x8aySm/Zc0kp7h50+lAUZwO hJpbqvxC9XqGpaHk3yOMfQ48pgLYBlfqNztyodVtfHp82QsZGHkjXGsuR8QPM28ez/M70mqlZ+YMmPwrlwH7mdruLc0Ctw3fSfs= X-Spam-Status: No, score=-3018.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,JMQ_SPF_NEUTRAL,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: >>>>> "Tom" == Tom Tromey writes: Tom> This series changes gdb to do its initial DWARF indexing in the Tom> background. I realized today that this series could cause a warning to be emitted from a worker thread: cooked_index_worker::do_reading is invoked in a worker thread, and it calls read_addrmap_from_aranges. This is bad because warning is not thread-safe. I have a patch to change this to use deferred_warnings and ensure that these are emitted on the main thread. I'll send v4 sometime soon-ish. Tom