Simplify regcache_cpy and remove regcache::cpy_no_passthrough
authorYao Qi <yao.qi@linaro.org>
Tue, 18 Jul 2017 11:46:14 +0000 (12:46 +0100)
committerYao Qi <yao.qi@linaro.org>
Tue, 18 Jul 2017 11:46:14 +0000 (12:46 +0100)
commitcfb7e58b483faa7ca4a3a8bb0030ed3e990b2c5c
tree57310cba2c726033617ff662ebbd25e7a096e527
parentc646b4e87f4b3445f83d48fa7d85999dd702c50f
Simplify regcache_cpy and remove regcache::cpy_no_passthrough

Nowadays, regcache_cpy is used where src is read-only and dst is not
read-only, so the regcache_cpy can be simplified to handle this case only.
As a result, regcache::cpy_no_passthrough, which is about two read-only
regcache copy, is no longer used, remove it as well.

gdb:

2017-07-18  Yao Qi  <yao.qi@linaro.org>

* regcache.c (regcache_cpy): Simplify it.
(regcache::cpy_no_passthrough): Remove it.
* regcache.h (cpy_no_passthrough): Remove it.
(regcache_dup, regcache_cpy): Update comments.
gdb/ChangeLog
gdb/regcache.c
gdb/regcache.h