From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 924DC395A464; Wed, 16 Nov 2022 15:07:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 924DC395A464 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668611254; bh=7Pe3NPgakFOQr4TsgRITyJa3Gba96qqMsoA17re6IGw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=beZF1gsJfopWET+CmktrfgDdg9Y6Wcdqy1lnR1VmIBWFR9AOTU7idHuPmkv/KrMVU S7tP+FIWIInKMh9uoWZdEWNOerti9KLDyKiBB2mk7P9JbygjJhf4MqwlxLZyCBcBcd 0N7rtBiM6UeWSC026cAVD8c5UVJtM1yxdKwYpoRQ= From: "tkacvins at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug symtab/29105] new DWARF reader still slow Date: Wed, 16 Nov 2022 15:07:33 +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: tkacvins at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey at sourceware dot org X-Bugzilla-Target-Milestone: 13.1 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=3D29105 --- Comment #25 from Tom Kacvinsky --- (In reply to Simon Marchi from comment #24) > (In reply to Tom Kacvinsky from comment #23) > > I can confirm this solves at least one of the problems I have seen with= slow > > debugging. Those problems are sluggishness stepping into functions and > > program startup. I believe the latter is due to having the glibc debug > > packages installed on my CentOS 7 system. The former - slow stepping i= nto > > functions - appears to be related to the LLVM linker. If use the BFD or > > gold linker to generate my executables and shared libraries, stepping i= nto > > function is pretty snappy. >=20 > You last problem sounds a lot like: >=20 > https://sourceware.org/bugzilla/show_bug.cgi?id=3D27754 Indeed it is. I see a lot of DW_MACRO_import - offset : 0x0 in the ELF files when compiling with -ggdb3 and using lld as the linker. I= f I switch to the gold or bfd linker, the myriad "offset : 0x0" go away. So, my suspicion is that this is not gdb's fault, but something undesirable that l= ld is doing. --=20 You are receiving this mail because: You are on the CC list for the bug.=