Use get_frame_register_value instead of deprecated_frame_register_read
authorYao Qi <yao.qi@linaro.org>
Tue, 8 Nov 2016 15:58:47 +0000 (15:58 +0000)
committerYao Qi <yao.qi@linaro.org>
Tue, 8 Nov 2016 15:58:47 +0000 (15:58 +0000)
commitcc977dc7d53ef4546592a4f02a2e06a621beae6f
treec0d7af183ac92c1daa7c4ad2c009dfee63137682
parent3cde5c42d1c1ddcf8bbde5c47233c644370c959c
Use get_frame_register_value instead of deprecated_frame_register_read

This patch calls get_frame_register_value instead of
deprecated_frame_register_read, so that we can pass
value_contents_for_printing to val_print.  Both
get_frame_register_value and deprecated_frame_register_read call
frame_unwind_register_value indirectly, so no functionality is changed
by this patch.

gdb:

2016-11-08  Yao Qi  <yao.qi@linaro.org>

* mt-tdep.c (mt_registers_info): Call
get_frame_register_value instead of
deprecated_frame_register_read.
* sh64-tdep.c (sh64_do_register): Likewise.
gdb/ChangeLog
gdb/mt-tdep.c
gdb/sh64-tdep.c