Refactor code slightly in nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_c...
authorAndrew Pinski <apinski@marvell.com>
Thu, 21 Oct 2021 16:57:36 +0000 (16:57 +0000)
committerAndrew Pinski <apinski@marvell.com>
Thu, 21 Oct 2021 19:02:01 +0000 (19:02 +0000)
commitf81ce492b2a5b8ffc83b3e8d03c2acfa45ce50ce
tree1f014933ff73455788dd0420837d0b414fa6fa7b
parent21a27fb021ad935b25da9f8f97ed4f7d70499c41
Refactor code slightly in nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity)

Since the two locations which check the debug arch are the same code currently, it is
a good idea to factor it out to a new function and just use that function from
aarch64_linux_get_debug_reg_capacity. This is also the first step to support
ARMv8.4 debug arch.
gdb/nat/aarch64-linux-hw-point.c