Remove cleanup in get_return_value
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)
commit0749542484129e77a30f1089d6d671197be5035f
tree6deb3119e76ecdaade1ab6995d6aa7fce43c63e2
parentdeb1fa3edaf10c65d1f39951779927da955e3a57
Remove cleanup in get_return_value

With regcache ctor, we can use it to create local object in
get_return_value (), so that the cleanup can be removed.

gdb:

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

* infcmd.c (get_return_value): Use regcache ctor, and remove
cleanup.
gdb/ChangeLog
gdb/infcmd.c