From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B8A5F385842A; Thu, 23 Dec 2021 16:36:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B8A5F385842A From: "ssbssa at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug macros/27754] Excessive CPU load and memory usage with -g3 debug info Date: Thu, 23 Dec 2021 16:36:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: macros X-Bugzilla-Version: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ssbssa 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 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, 23 Dec 2021 16:36:26 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27754 --- Comment #21 from Hannes Domani --- It looks like for LTO builds the .debug_macro section is missing: $ gcc -g3 -flto -ogdb-28589-g3-lto.exe gdb-28589.c $ objdump --section=3D.debug_macro --headers gdb-28589-g3-lto.exe gdb-28589-g3-lto.exe: file format pei-x86-64 Sections: Idx Name Size VMA LMA File of= f=20 Algn objdump: section '.debug_macro' mentioned in a -j option, but not found= in any input file It's there without -flto: $ gcc -g3 -ogdb-28589-g3.exe gdb-28589.c $ objdump --section=3D.debug_macro --headers gdb-28589-g3.exe gdb-28589-g3.exe: file format pei-x86-64 Sections: Idx Name Size VMA LMA File of= f=20 Algn 18 .debug_macro 0000687f 0000000140046000 0000000140046000 0003ba0= 0=20 2**0 CONTENTS, READONLY, DEBUGGING --=20 You are receiving this mail because: You are on the CC list for the bug.=