Use tag dispatch regcache ctor in regcache_dup
authorYao Qi <yao.qi@linaro.org>
Fri, 28 Apr 2017 21:48:42 +0000 (22:48 +0100)
committerYao Qi <yao.qi@linaro.org>
Fri, 28 Apr 2017 21:48:42 +0000 (22:48 +0100)
commitdeb1fa3edaf10c65d1f39951779927da955e3a57
tree2c9ec3e61edf329ab924e7506ca7725abb91212a
parentb421c83cb866120ab347d60fda20fb0e2011be8c
Use tag dispatch regcache ctor in regcache_dup

This patch adds a tag dispatch ctor to create read-only regcache from
a write-through regcache, also this patch deletes copy ctor and
assignment operator.

gdb:

2017-04-28  Yao Qi  <yao.qi@linaro.org>
    Pedro Alves  <palves@redhat.com>

* regcache.c (regcache::regcache): New tag dispatch ctor.
(do_cooked_read): Moved above.
(regcache_dup): Use the tag dispatch ctor..
* regcache.h (regcache): Declare ctor, delete copy ctor and
assignment operator, remove friend regcache_dup.
gdb/ChangeLog
gdb/regcache.c
gdb/regcache.h
This page took 0.026638 seconds and 4 git commands to generate.