]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
fixup GDB: Add concept of variable-size registers to the regcache
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Sun, 27 Apr 2025 03:28:05 +0000 (00:28 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Mon, 28 Apr 2025 04:52:53 +0000 (01:52 -0300)
gdb/remote.c

index 831c1d595ec7477c3c827d286e5a9bdb8ae4a5c8..f51f9cf6985597bd6b353628eb01b1a47ad9defa 100644 (file)
@@ -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