Implement DAP "source" request
authorTom Tromey <tromey@adacore.com>
Thu, 27 Jul 2023 20:27:05 +0000 (14:27 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 1 Aug 2023 19:14:47 +0000 (13:14 -0600)
commit13bd1a9175962980a3b0f1c0598698858c72fc04
treefc16ba7ac0ddfdbb9cace50ce688824249ab0021
parent4b6521cf69f45050f857edeb592bc46ea198041d
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
gdb/python/lib/gdb/dap/sources.py
gdb/testsuite/gdb.dap/basic-dap.exp
gdb/testsuite/gdb.dap/sources.c [new file with mode: 0644]
gdb/testsuite/gdb.dap/sources.exp [new file with mode: 0644]