public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug dap/30691] New: Implement "source" request
@ 2023-07-27 17:09 tromey at sourceware dot org
  2023-07-27 20:27 ` [Bug dap/30691] " tromey at sourceware dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2023-07-27 17:09 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30691

            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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug dap/30691] Implement "source" request
  2023-07-27 17:09 [Bug dap/30691] New: Implement "source" request tromey at sourceware dot org
@ 2023-07-27 20:27 ` tromey at sourceware dot org
  2023-07-28 17:11 ` tromey at sourceware dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2023-07-27 20:27 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30691

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at sourceware dot org   |tromey at sourceware dot org

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
I went ahead and implemented this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug dap/30691] Implement "source" request
  2023-07-27 17:09 [Bug dap/30691] New: Implement "source" request tromey at sourceware dot org
  2023-07-27 20:27 ` [Bug dap/30691] " tromey at sourceware dot org
@ 2023-07-28 17:11 ` tromey at sourceware dot org
  2023-07-28 17:11 ` tromey at sourceware dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2023-07-28 17:11 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30691

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
https://sourceware.org/pipermail/gdb-patches/2023-July/201207.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug dap/30691] Implement "source" request
  2023-07-27 17:09 [Bug dap/30691] New: Implement "source" request tromey at sourceware dot org
  2023-07-27 20:27 ` [Bug dap/30691] " tromey at sourceware dot org
  2023-07-28 17:11 ` tromey at sourceware dot org
@ 2023-07-28 17:11 ` tromey at sourceware dot org
  2023-08-01 19:15 ` cvs-commit at gcc dot gnu.org
  2023-08-01 19:16 ` tromey at sourceware dot org
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2023-07-28 17:11 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30691

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.1

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug dap/30691] Implement "source" request
  2023-07-27 17:09 [Bug dap/30691] New: Implement "source" request tromey at sourceware dot org
                   ` (2 preceding siblings ...)
  2023-07-28 17:11 ` tromey at sourceware dot org
@ 2023-08-01 19:15 ` cvs-commit at gcc dot gnu.org
  2023-08-01 19:16 ` tromey at sourceware dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-08-01 19:15 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30691

--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom Tromey <tromey@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=13bd1a9175962980a3b0f1c0598698858c72fc04

commit 13bd1a9175962980a3b0f1c0598698858c72fc04
Author: Tom Tromey <tromey@adacore.com>
Date:   Thu Jul 27 14:27:05 2023 -0600

    Implement DAP "source" request

    This implements the DAP "source" request.  I renamed the
    "loadedSources" function from "sources" to "loaded_sources" to avoid
    any confusion.  I also moved the loadedSources test to the new
    sources.exp.

    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30691

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug dap/30691] Implement "source" request
  2023-07-27 17:09 [Bug dap/30691] New: Implement "source" request tromey at sourceware dot org
                   ` (3 preceding siblings ...)
  2023-08-01 19:15 ` cvs-commit at gcc dot gnu.org
@ 2023-08-01 19:16 ` tromey at sourceware dot org
  4 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2023-08-01 19:16 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30691

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #4 from Tom Tromey <tromey at sourceware dot org> ---
Fixed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-08-01 19:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-27 17:09 [Bug dap/30691] New: Implement "source" request tromey at sourceware dot org
2023-07-27 20:27 ` [Bug dap/30691] " tromey at sourceware dot org
2023-07-28 17:11 ` tromey at sourceware dot org
2023-07-28 17:11 ` tromey at sourceware dot org
2023-08-01 19:15 ` cvs-commit at gcc dot gnu.org
2023-08-01 19:16 ` tromey at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).