diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2011-10-26 17:32:00 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2011-10-26 17:32:00 +0000 |
commit | c34fd85260102e2a68a248e13a4eb99a3dc8548b (patch) | |
tree | 5a3c7427bbd3cd35f6fda4f9aac0b1522dd6b0ac /gdb/regcache.c | |
parent | 931bb47f455fbc152330c510688c58699deef171 (diff) | |
download | fsf-binutils-gdb-c34fd85260102e2a68a248e13a4eb99a3dc8548b.zip fsf-binutils-gdb-c34fd85260102e2a68a248e13a4eb99a3dc8548b.tar.gz fsf-binutils-gdb-c34fd85260102e2a68a248e13a4eb99a3dc8548b.tar.bz2 |
* regcache.c (registers_changed_ptid): Invalidate thread architecture
and frame caches if PTID refers to all threads of a process.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r-- | gdb/regcache.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c index ea8189e..f81ac30 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c @@ -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 = ¤t_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. */ |