From 812e7caf60b11c1b9ed09f7d5eda47c2178005dc Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 28 Jun 2023 06:57:16 -0600 Subject: 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 --- gdb/doc/gdb.texinfo | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/doc') diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index cd86da5..1463f50 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -39097,6 +39097,11 @@ The target to which @value{GDBN} should connect. This is a string and is passed to the @code{target remote} command. @xref{Connecting}. @end table +In response to the @code{disassemble} request, DAP allows the client +to return the bytes of each instruction in an implementation-defined +format. @value{GDBN} implements this by sending a string with the +bytes encoded in hex, like @code{"55a2b900"}. + @node JIT Interface @chapter JIT Compilation Interface @cindex just-in-time compilation -- cgit v1.1