From: Thiago Jung Bauermann Date: Sun, 27 Apr 2025 03:28:05 +0000 (-0300) Subject: fixup GDB: Add concept of variable-size registers to the regcache X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42609b1bb7060c8cc88583926f5c980848ea34fb;p=thirdparty%2Fbinutils-gdb.git fixup GDB: Add concept of variable-size registers to the regcache --- diff --git a/gdb/remote.c b/gdb/remote.c index 831c1d595ec..f51f9cf6985 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -8606,6 +8606,10 @@ remote_target::supply_expedited_registers (regcache *regcache, regcache->raw_supply (reg.num, reg.data); rs->last_seen_expedited_registers.insert (reg.num); } + + if (regcache->has_variable_size_registers ()) + rs->get_remote_arch_state (regcache->arch ()) + ->update_packet_size (regcache, rs); } /* Called when it is decided that STOP_REPLY holds the info of the