Fix ARMv8.1/v8.2 for hw watchpoint and breakpoint
authorAndrew Pinski <apinski@cavium.com>
Sat, 23 Jul 2016 16:56:44 +0000 (09:56 -0700)
committerAndrew Pinski <apinski@cavium.com>
Sat, 23 Jul 2016 17:10:32 +0000 (10:10 -0700)
commit49ecef2a7da2ee9df4ae675f99b70518fbf1bb23
treefa4538400b464588be1c9c52e3edb0c264067d72
parent463888ab6be549e8dcc9eac36dc07c1c237e2968
Fix ARMv8.1/v8.2 for hw watchpoint and breakpoint

The problem here is ARMv8.1 (and ARMv8.2) define a
different debug version than ARMv8 (7 and 8 respectively).
This fixes hw watchpoints and breakpoints by checking
for those debug versions too.

Committed as obvious after a test on aarch64-linux-gnu
(on a ThunderX machine which has ARMv8.1 support enabled).

ChangeLog:
* nat/aarch64-linux-hw-point.c
(aarch64_linux_get_debug_reg_capacity): Handle
ARMv8.1 and ARMv8.2 debug versions.
* nat/aarch64-linux-hw-point.h
(AARCH64_DEBUG_ARCH_V8_1): New define.
(AARCH64_DEBUG_ARCH_V8_2): New define.

Signed-off-by: Andrew Pinski <apinski@cavium.com>
gdb/ChangeLog
gdb/nat/aarch64-linux-hw-point.c
gdb/nat/aarch64-linux-hw-point.h
This page took 0.025531 seconds and 4 git commands to generate.