]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: remote: Save the stop reply packet from vRun and use it
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Sun, 27 Apr 2025 03:04:11 +0000 (00:04 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Sun, 27 Apr 2025 03:29:09 +0000 (00:29 -0300)
commitdb72c78647c9c9a16658478b078ebed4ebcf3aa3
tree23426f6c360141ab1f50f42467693b7e98cd9dec
parent40f8939b622d28a681221fe2f9e460fd6bca08ad
gdb: remote: Save the stop reply packet from vRun and use it

The reply to the vRun packet is a stop reply, which may contain
expedited registers.  They are currently ignored and GDB will very soon
have to request them again when setting up the new inferior.

It's more efficient to save the reply and supply the expedited registers
when a new regcache is created.  This will also be useful for target
description parameters, in the case when those parameters are derived
from expedited registers.
gdb/process-stratum-target.h
gdb/regcache.c
gdb/remote.c