aboutsummaryrefslogtreecommitdiff
path: root/gdb/nat/aarch64-linux-hw-point.h
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2015-07-21 16:33:41 +0100
committerYao Qi <yao.qi@linaro.org>2015-07-21 16:33:41 +0100
commitaf1b22f3004774f8c5c570abe7fab629026032f7 (patch)
treed24e1ef9ca80f1b62c1e08c75bffbac865cf792e /gdb/nat/aarch64-linux-hw-point.h
parent40e050d242199ac67803c155ac2062169e5cf53d (diff)
downloadgdb-af1b22f3004774f8c5c570abe7fab629026032f7.zip
gdb-af1b22f3004774f8c5c570abe7fab629026032f7.tar.gz
gdb-af1b22f3004774f8c5c570abe7fab629026032f7.tar.bz2
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.
Diffstat (limited to 'gdb/nat/aarch64-linux-hw-point.h')
-rw-r--r--gdb/nat/aarch64-linux-hw-point.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/nat/aarch64-linux-hw-point.h b/gdb/nat/aarch64-linux-hw-point.h
index 1d81a08..a430a8f 100644
--- a/gdb/nat/aarch64-linux-hw-point.h
+++ b/gdb/nat/aarch64-linux-hw-point.h
@@ -181,4 +181,6 @@ void aarch64_show_debug_reg_state (struct aarch64_debug_reg_state *state,
const char *func, CORE_ADDR addr,
int len, enum target_hw_bp_type type);
+void aarch64_linux_get_debug_reg_capacity (int tid);
+
#endif /* AARCH64_LINUX_HW_POINT_H */