* regcache.c (registers_changed_ptid): Invalidate thread architecture
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 26 Oct 2011 17:32:00 +0000 (17:32 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Wed, 26 Oct 2011 17:32:00 +0000 (17:32 +0000)
and frame caches if PTID refers to all threads of a process.

gdb/ChangeLog
gdb/regcache.c

index e75459186787e51d1781e0ad049804a3f7d59592..5d6087205f16fbc3c362eb67a088f393a3745975 100644 (file)
@@ -1,3 +1,8 @@
+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
index ea8189e67db80d19d741c300a82bd983de32b308..f81ac309bb66f2b342c3dff993bb7ccd90fb04a8 100644 (file)
@@ -548,7 +548,6 @@ void
 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 = &current_regcache;
@@ -569,13 +568,13 @@ registers_changed_ptid (ptid_t ptid)
       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.  */
This page took 0.030204 seconds and 4 git commands to generate.