Get register contents by register_size instead of TYPE_LENGTH
authorYao Qi <yao.qi@linaro.org>
Wed, 24 May 2017 21:15:23 +0000 (22:15 +0100)
committerYao Qi <yao.qi@linaro.org>
Wed, 24 May 2017 21:15:23 +0000 (22:15 +0100)
commitd8e07dda92366be0f6fc2e7128620d3dd53494e3
treedd00dd3da1ca544d1ab491c80d15ac57f6821a98
parent8c8f9122ce6e6c00f72914479af57a7b87244554
Get register contents by register_size instead of TYPE_LENGTH

We should use register_size to get register contents instead of
TYPE_LENGTH.

gdb:

2017-05-24  Yao Qi  <yao.qi@linaro.org>

* i387-tdep.c (i387_register_to_value): Use register_size
instead of TYPE_LENGTH.
* m68k-tdep.c (m68k_register_to_value): Likewise.
gdb/ChangeLog
gdb/i387-tdep.c
gdb/m68k-tdep.c