Add instruction bytes to DAP disassembly response
authorTom Tromey <tromey@adacore.com>
Wed, 28 Jun 2023 12:57:16 +0000 (06:57 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 21 Jul 2023 15:30:12 +0000 (09:30 -0600)
commit812e7caf60b11c1b9ed09f7d5eda47c2178005dc
tree83624516f3de4d3dfd0fe3be0504ce177275e696
parent83f362cf8f9539cefdd5df709a347a5396d23c76
Add instruction bytes to DAP disassembly response

The DAP disassemble command lets the client return the underlying
bytes of the instruction in an implementation-defined format.  This
patch updates gdb to return this, and simply uses a hex string of the
bytes as the format.

Reviewed-By: Eli Zaretskii <eliz@gnu.org>
gdb/doc/gdb.texinfo
gdb/python/lib/gdb/dap/disassemble.py
gdb/testsuite/gdb.dap/basic-dap.exp