Introduce sourceReference handling in DAP
authorTom Tromey <tromey@adacore.com>
Thu, 27 Jul 2023 20:04:31 +0000 (14:04 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 1 Aug 2023 19:12:22 +0000 (13:12 -0600)
commitc64cba1b56ea7dd7b0b2107fd22ef989dfb5921e
tree1d601bb6b40aa67fd333ed4daa752534e71d731f
parent7b4a5561e4bfc251f35c3bdf14f5a780cd3695a8
Introduce sourceReference handling in DAP

This changes the gdb DAP implementation to emit a real
sourceReference, rather than emitting 0.  Sources are tracked in some
maps in sources.py, and a new helper function is introduced to compute
the "Source" object that can be sent to the client.
gdb/python/lib/gdb/dap/breakpoint.py
gdb/python/lib/gdb/dap/bt.py
gdb/python/lib/gdb/dap/sources.py