Remove global variable arm_linux_has_wmmx_registers in arm-linux-nat.c
authorYao Qi <yao.qi@linaro.org>
Thu, 28 May 2015 09:19:30 +0000 (10:19 +0100)
committerYao Qi <yao.qi@linaro.org>
Thu, 28 May 2015 09:19:30 +0000 (10:19 +0100)
commita56cc1ce222a9c69fd117a8a6f23817f4f1abd5f
tree97d106b5579c79b6670c1174166dc5a305d41d7e
parent330c6ca9a034902cb0e7c7a9f64af651f39b5bf9
Remove global variable arm_linux_has_wmmx_registers in arm-linux-nat.c

This patch is to remove the global variable arm_linux_has_wmmx_registers
in arm-linux-nat.c, and add a new field have_wmmx_registers in
'struct gdbarch_tdep'.

gdb:

2015-05-28  Yao Qi  <yao.qi@linaro.org>

* arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
(arm_linux_fetch_inferior_registers): Use
tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
(arm_linux_store_inferior_registers): Likewise.
(arm_linux_read_description): Don't set
arm_linux_has_wmmx_registers.
* arm-tdep.c (arm_gdbarch_init): Set
tdep->have_wmmx_registers according target descriptions.
* arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
field.
gdb/ChangeLog
gdb/arm-linux-nat.c
gdb/arm-tdep.c
gdb/arm-tdep.h