From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5D531385771F; Thu, 27 Jul 2023 17:09:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D531385771F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1690477756; bh=Qc0L91rzNHAOC3neW018dGHH1195/uyYNfjRWU4k8H8=; h=From:To:Subject:Date:From; b=nKnFwUZhSIJnIjbgIttIKtH9o47DtNOzNEep9Mr+4rMfwiCBcgfdIhq+Vg6H0/4MA CDNb1jA5bhLog9JJzcUKLJyhbXF7+putLpmuaiY/T2an8CGlsKn9ZPNfIPy5kzYH2G S9jfzsxUf7UcfKMfbPGbnTwbvYfFqxzQ7A+Svb88= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug dap/30691] New: Implement "source" request Date: Thu, 27 Jul 2023 17:09:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: dap X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey 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: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30691 Bug ID: 30691 Summary: Implement "source" request Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: dap Assignee: unassigned at sourceware dot org Reporter: tromey at sourceware dot org Target Milestone: --- The DAP "source" request tells gdb to send the text of a source file. This would be handy for the scenario where an IDE launches gdb on some remote machine. To implement this, we'd need to fix up a couple of spots that specify "sourceReference": 0, and also at least one spot (loadedSources request) that doesn't specify this at all. We'd probably also need a Python API to something like find_and_open_source. --=20 You are receiving this mail because: You are on the CC list for the bug.=