From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 06958393C86F; Tue, 25 May 2021 19:44:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 06958393C86F From: "simark at simark dot ca" To: gdb-prs@sourceware.org Subject: [Bug symtab/17547] over-eager debuginfo reading Date: Tue, 25 May 2021 19:44:16 +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: 7.7 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: simark at simark dot ca 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: 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: Tue, 25 May 2021 19:44:17 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D17547 Simon Marchi changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |simark at simark dot ca --- Comment #4 from Simon Marchi --- GDB goes through the DWARF info of all code objects to build some name index (partial symtabs), such that if you type "break foo", it can quickly know w= hich compilation units contain a function or method called foo. The solution to avoid that is to use an index (DWARF4 .gdb_index, or DWARF5 .debug_names).= =20 Then, if debuginfod offered that, I could imagine GDB just downloading the index section, which is small compared to the rest of the debug info. And then, when it needs to expand a compilation unit's debug info, it could download just the portion of the .debug_* sections that it needs (again, if debuginfod offered that). I think it would be neat. --=20 You are receiving this mail because: You are on the CC list for the bug.=