]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdbserver: Implement p and P packets
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Sat, 5 Oct 2024 03:19:53 +0000 (00:19 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Fri, 25 Apr 2025 01:42:31 +0000 (22:42 -0300)
commit40f8939b622d28a681221fe2f9e460fd6bca08ad
tree0aab0aa7c81e4a9dda7807f63d865621c0d720d2
parentc4d68c00c4c6db39189790f54e3e16eed6fbd205
gdbserver: Implement p and P packets

GDB will need the p packet to individually request "load early" registers
before using the g packet.

Not sure if P is necessary, but if p is supported, why not implement P?

Alternatively, to be more efficient there could be a packet where GDB can
specify a list of registers it wants do load or set.  Or there could be a
register to request/set the expedited registers.

Reviewed-By: Luis Machado <luis.machado@arm.com>
gdbserver/regcache.cc
gdbserver/regcache.h
gdbserver/server.cc