From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 968353857C75; Thu, 1 Apr 2021 06:06:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 968353857C75 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/27678] New: [gdb/symtab] Use debuginfod sourcelist api to test for file existence Date: Thu, 01 Apr 2021 06:06:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: vries at gcc dot gnu.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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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, 01 Apr 2021 06:06:16 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27678 Bug ID: 27678 Summary: [gdb/symtab] Use debuginfod sourcelist api to test for file existence Product: gdb Version: HEAD Status: NEW Severity: enhancement Priority: P2 Component: symtab Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- Spinoff of PR27667. In PR27673, a new debuginfod webapi to is proposed to enumerate source file= s: a "/buildid/HEXCODE/sourcelist" query. Once that's there, the client api could be extended to support an debuginfod_source_exists_query. This could then be used in gdb. Currently in gdb, in some cases (symtab_to_fullname) we just want to know whether the file exists, and in order to verify this we open the file using debuginfod_source_query, test the resulting file descriptor for success and then close it. This means sending over the content of the file, but not immediately using it. Using debuginfod_source_exists_query would be cheape= r. --=20 You are receiving this mail because: You are on the CC list for the bug.=