From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9ECBD397C82A; Fri, 23 Apr 2021 18:38:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9ECBD397C82A From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/27754] Excessive CPU load and memory usage with -g3 debug info Date: Fri, 23 Apr 2021 18:38:36 +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: 10.1 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: everconfirmed bug_status cf_reconfirmed_on cc 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: Fri, 23 Apr 2021 18:38:36 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27754 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2021-04-23 CC| |tromey at sourceware dot o= rg --- Comment #2 from Tom Tromey --- "maint space 1" reports a big difference alright. Good: (gdb) print StartOfUserCode $1 =3D {void (void)} 0x866d8 Space used: 208310272 (+204247040 for this command) Bad: (gdb) print StartOfUserCode Space used: 5955563520 (+5949935616 for this command) No symbol "StartOfUserCode" in current context. For me it also fails, but that's because this symbol isn't defined in the release ELF. gdb seems to be expanding every CU here. > That is already too much for this smallish project. Agreed, though I didn't dig into where it all goes. It definitely seems excessive given that the DWARF only seems to be 240k or so. --=20 You are receiving this mail because: You are on the CC list for the bug.=