Move aarch64_linux_get_debug_reg_capacity to nat/aarch64-linux-hw-point.c
authorYao Qi <yao.qi@linaro.org>
Tue, 21 Jul 2015 15:33:41 +0000 (16:33 +0100)
committerYao Qi <yao.qi@linaro.org>
Tue, 21 Jul 2015 15:33:41 +0000 (16:33 +0100)
commitaf1b22f3004774f8c5c570abe7fab629026032f7
treed24e1ef9ca80f1b62c1e08c75bffbac865cf792e
parent40e050d242199ac67803c155ac2062169e5cf53d
Move aarch64_linux_get_debug_reg_capacity to nat/aarch64-linux-hw-point.c

There are also some duplication on getting HW watchpoint/breakpoint
registers info between GDB and GDBserver.  This patch moves them
to nat/aarch64-linux-hw-point.c.

Note that ENABLE_NLS is not defined in GDBserver, so it should be OK
to use _( markup.

gdb:

2015-07-21  Yao Qi  <yao.qi@linaro.org>

* aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
Move it to nat/aarch64-linux-hw-point.c.
(aarch64_linux_child_post_startup_inferior): Update.
* nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
New function.
* nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
Declare it.

gdb/gdbserver:

2015-07-21  Yao Qi  <yao.qi@linaro.org>

* linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
aarch64_linux_get_debug_reg_capacity.
gdb/ChangeLog
gdb/aarch64-linux-nat.c
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-aarch64-low.c
gdb/nat/aarch64-linux-hw-point.c
gdb/nat/aarch64-linux-hw-point.h