* regcache.c (realloc_register_cache): Invalidate inferior's

regcache before recreating it.
This commit is contained in:
Pedro Alves 2010-04-11 01:47:48 +00:00
parent 43ede885e4
commit 5d267c4c70
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -138,6 +138,8 @@ realloc_register_cache (struct inferior_list_entry *thread_p)
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 ());
}