Add constructor and destructor to regcache
authorYao Qi <yao.qi@linaro.org>
Fri, 28 Apr 2017 13:43:13 +0000 (14:43 +0100)
committerYao Qi <yao.qi@linaro.org>
Fri, 28 Apr 2017 13:43:13 +0000 (14:43 +0100)
commit4621115fe529869e938dca605bb90190ea52316a
tree6d6f237f585128861ffe4e605adb85e3335ab9ff
parentb06b2c92c06cf100f259f218337d007ee0b1c884
Add constructor and destructor to regcache

This patch adds ctor and dtor to regcache.

gdb:

2017-04-28  Yao Qi  <yao.qi@linaro.org>

* regcache.c (regcache::regcache): New function.
(regcache::~regcache): New function.
(regcache_xmalloc_1): Remove.
(regcache_xmalloc): Call new regcache.
(regcache_xfree): Call delete regcache.
(get_thread_arch_aspace_regcache): Call new regcache.
gdb/ChangeLog
gdb/regcache.c