* regcache.c (set_register_cache): Invalidate regcaches before
[deliverable/binutils-gdb.git] / gdb / gdbserver / linux-x86-low.c
index 1c282791ba32b8d1d9d2d5860af36fe715838b73..ec01f37e6def72b92374ebdd1158c5c9135f48c7 100644 (file)
@@ -841,6 +841,11 @@ x86_linux_update_xmltarget (void)
   if (!current_inferior)
     return;
 
+  /* Before changing the register cache internal layout or the target
+     regsets, flush the contents of the current valid caches back to
+     the threads.  */
+  regcache_invalidate ();
+
   pid = pid_of (get_thread_lwp (current_inferior));
 #ifdef __x86_64__
   if (num_xmm_registers == 8)
This page took 0.025531 seconds and 4 git commands to generate.