From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A0A3C3858D35; Mon, 26 Dec 2022 05:53:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A0A3C3858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1672034016; bh=rhQwgTC5CshnmHMxKJEsL6PvToz/cEemjl/sX2hbW94=; h=From:To:Subject:Date:In-Reply-To:References:From; b=aagChKgjx018/Sx2M86px9UIboM58WjRqrOme+1KqqBgpAnszde1Wag/hHmv5omxN 74pAQdezvVJjLWL+rxIePeo6rWlWN9g9+1+I2k8DDXG9ENkGCVascypo0Pozm0B8vo yuAJCUz8jGgGgb61Qgd0GS+HZwhGPDGie/YhrnK8= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug symtab/29942] Read some DWARF purely in background Date: Mon, 26 Dec 2022 05:53:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29942 --- Comment #2 from Tom Tromey --- It occurs to me that maybe everything in dwarf2_build_psymtabs_hard after the sections are read could be done in a worker thread. (This kind of thing would maybe be easier with C++20 coroutines.) > I think the main benefit to doing this would be that "attach" > might appear to be faster. The theory behind this is that with "attach", breakpoint re-sets are deferred until all the shared libraries are read, providing a little extra time for the background threads to work. It might be interesting to see if minsym reading can also be done in a worker. --=20 You are receiving this mail because: You are on the CC list for the bug.=