+2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * regcache.c (registers_changed_ptid): Invalidate thread architecture
+ and frame caches if PTID refers to all threads of a process.
+
2011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
* spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
registers_changed_ptid (ptid_t ptid)
{
struct regcache_list *list, **list_link;
- int wildcard = ptid_equal (ptid, minus_one_ptid);
list = current_regcache;
list_link = ¤t_regcache;
list = *list_link;
}
- if (wildcard || ptid_equal (ptid, current_thread_ptid))
+ if (ptid_match (current_thread_ptid, ptid))
{
current_thread_ptid = null_ptid;
current_thread_arch = NULL;
}
- if (wildcard || ptid_equal (ptid, inferior_ptid))
+ if (ptid_match (inferior_ptid, ptid))
{
/* We just deleted the regcache of the current thread. Need to
forget about any frames we have cached, too. */