Arm: Minor style cleanups
authorAlan Hayward <alan.hayward@arm.com>
Tue, 25 Jun 2019 10:04:59 +0000 (11:04 +0100)
committerAlan Hayward <alan.hayward@arm.com>
Wed, 10 Jul 2019 10:59:34 +0000 (11:59 +0100)
commit166a82be89008621a31e6e56b2d52a049b53e341
tree485bbea510454c2f43adfbd8050f8d38c6a87fd4
parent9fb4c7e9f00accbbf92fc0b0a53978fd50ff6bb0
Arm: Minor style cleanups

*When reading a target description, do the ptrace check before picking the
 target description.

*In wmmxregset functions, declare the counter inside the for.

*Call arm_linux_init_hwbp_cap from in arm_arch_setup - it doesn't belong in
 arm_read_description.

gdb/ChangeLog:

* arm-linux-nat.c (arm_linux_nat_target::read_description): Check
ptrace earlier,

gdb/gdbserver/ChangeLog:

* linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
Move counter inside for.
(arm_read_description): Check ptrace earlier.
(arm_arch_setup): Call arm_linux_init_hwbp_cap here.
gdb/ChangeLog
gdb/arm-linux-nat.c
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-arm-low.c