PR gdb/11557
authorPedro Alves <palves@redhat.com>
Thu, 29 Apr 2010 16:33:16 +0000 (16:33 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 29 Apr 2010 16:33:16 +0000 (16:33 +0000)
commite66408edfdc94395f4a59bbe360abb222ccc48ea
tree7a885efc4c6361cbf4b55b4ac3838c2215d5831c
parentb2319725b8a702f0efa820d0cc4dd0bdd7d8f52b
PR gdb/11557

gdb/
* regcache.c (registers_changed): Rename to ...
(registers_changed_ptid): ... this, and only delete register cache
entries matching the ptid filter argument.
(registers_changed): Reimplement on top of registers_changed_ptid.
* regcache.h (registers_changed_ptid): Declare.
* target.c (target_resume): Flush register caches.

gdb/testsuite/
* gdb.mi/mi-ns-stale-regcache.exp, gdb.mi/ns-stale-regcache.c: New
files.
gdb/ChangeLog
gdb/regcache.c
gdb/regcache.h
gdb/target.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp [new file with mode: 0644]
gdb/testsuite/gdb.mi/ns-stale-regcache.c [new file with mode: 0644]