From 42609b1bb7060c8cc88583926f5c980848ea34fb Mon Sep 17 00:00:00 2001 From: Thiago Jung Bauermann Date: Sun, 27 Apr 2025 00:28:05 -0300 Subject: [PATCH] fixup GDB: Add concept of variable-size registers to the regcache --- gdb/remote.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.47.2