cooked_read test for readonly regcache
authorYao Qi <yao.qi@linaro.org>
Fri, 24 Nov 2017 13:04:30 +0000 (13:04 +0000)
committerYao Qi <yao.qi@linaro.org>
Fri, 24 Nov 2017 13:04:30 +0000 (13:04 +0000)
commita63f2d2feedcfce401ae1d7d03d119bfa5e4d8bc
treeeea14e9b568e35e4768da17556431051e6945df4
parent1b30aaa56607a563fa263b9d2ee9eba89d79c1b4
cooked_read test for readonly regcache

This patch adds a test to check cooked_read for readonly regcache.  For
raw registers, cooked_read get either REG_VALID or REG_UNKNOWN, depends on
the raw register is in save_reggroup or not.  For pseudo register,
cooked_read get different result in different ports.

gdb:

2017-11-24  Yao Qi  <yao.qi@linaro.org>

* regcache.c (cooked_read_test): Add more test for readonly
regcache.
gdb/ChangeLog
gdb/regcache.c