From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 99DB1388A011; Thu, 2 Apr 2020 12:39:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 99DB1388A011 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/23710] gdb is slow and memory hungry consuming debug generated with LTO by GCC Date: Thu, 02 Apr 2020 12:39:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Apr 2020 12:39:27 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23710 --- Comment #15 from Tom de Vries --- (In reply to Tom de Vries from comment #8) > (In reply to Tom de Vries from comment #6) > > (In reply to Richard Biener from comment #0) > > > "Mirror" of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87432 wher= e we try > > > to improve the GCC side. Input from gdb folks is needed here. > > >=20 > > > gdb takes ~10s to process a LTO bootstrapped cc1 binary and another t= wo > > > seconds > > > when setting the first breakpoint. It also has allocated 1.6GB memor= y at > > > that point (compared to ~200MB for a non-LTO binary). > >=20 > > The proposed patch at > > https://sourceware.org/ml/gdb-patches/2020-02/msg00974.html allows a sp= eedup > > when manually specifying the source language before loading, which take= s 17% > > off the execution time of loading and setting the first breakpoint. >=20 > That patch has been accepted. >=20 > I've submitted a RFC patch that automates this workaround: > https://sourceware.org/ml/gdb-patches/2020-03/msg00009.html . Committed: https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dcommit;h=3Dd3214198119= c1a2f9a6a2b8fcc56d8c324e1a245 --=20 You are receiving this mail because: You are on the CC list for the bug.=