From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3A3BD393D00B; Tue, 25 May 2021 19:50:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3A3BD393D00B From: "fche at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug symtab/17547] over-eager debuginfo reading Date: Tue, 25 May 2021 19:50:06 +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: fche at redhat dot com 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: Tue, 25 May 2021 19:50:07 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D17547 --- Comment #5 from Frank Ch. Eigler --- (In reply to Simon Marchi from comment #4) > GDB goes through the DWARF info of all code objects to build some name in= dex > (partial symtabs), such that if you type "break foo", it can quickly know > which compilation units contain a function or method called foo. Understood, that's the sort of thing that appears to require program-wide debuginfo data of some sort. But something like=20 % gdb /bin/gnome-control-centre (gdb) run ^C (gdb) bt doesn't seem to. > The solution to avoid that is to use an index (DWARF4 .gdb_index, or DWAR= F5 > .debug_names). Then, if debuginfod offered that, I could imagine GDB just > downloading the index section [...] Yes, that seems plausible, assuming it's a savings, perhaps latency being m= ost important. Depending on one's luck, it could be that transferring the whole file would not take much longer than extracting the index only and transfer= ring that. --=20 You are receiving this mail because: You are on the CC list for the bug.=