regcache before recreating it.
+2010-04-11 Pedro Alves <pedro@codesourcery.com>
+
+ * regcache.c (realloc_register_cache): Invalidate inferior's
+ regcache before recreating it.
+
2010-04-09 Pedro Alves <pedro@codesourcery.com>
* tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
struct regcache *regcache
= (struct regcache *) inferior_regcache_data (thread);
+ if (regcache != NULL)
+ regcache_invalidate_one (thread_p);
free_register_cache (regcache);
set_inferior_regcache_data (thread, new_register_cache ());
}