diff options
author | Richard Bunt <richard.bunt@arm.com> | 2018-06-21 14:09:34 +0100 |
---|---|---|
committer | Richard Bunt <richard.bunt@arm.com> | 2018-06-21 14:09:34 +0100 |
commit | 8363f9d5f2fab2c8b5a25c35c572f0426a716b66 (patch) | |
tree | bb6b9abc3f6dc6ed668ec1301c95e2ea536a5559 /gdb/ChangeLog | |
parent | 57c0d77c2ce5e583dab322e05f8291bcbad0ccd3 (diff) | |
download | fsf-binutils-gdb-8363f9d5f2fab2c8b5a25c35c572f0426a716b66.zip fsf-binutils-gdb-8363f9d5f2fab2c8b5a25c35c572f0426a716b66.tar.gz fsf-binutils-gdb-8363f9d5f2fab2c8b5a25c35c572f0426a716b66.tar.bz2 |
Enable hardware watchpoints on attach for aarch64
This commit fixes a bug whereby hardware watchpoints are not used on
aarch64 when attaching to a target. The fix adds an aarch64 specialization
of post_attach which records the number of available hardware debug registers
using aarch64_linux_get_debug_reg_capacity. This implementation mirrors that
of aarch64_linux_child_post_startup_inferior which successfully enables the
use of hardware watchpoints when launching the target under the debugger.
gdb/ChangeLog:
* aarch64-linux-nat.c (post_attach): New.
(aarch64_linux_nat_target::post_attach): Override post_attach to
record the number of hardware debug registers.
gdb/testsuite/ChangeLog:
* gdb.base/watchpoint-hw-attach.c: New test.
* gdb.base/watchpoint-hw-attach.exp: New file.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index da330d5..b48f58c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2018-06-21 Richard Bunt <richard.bunt@arm.com> + Dirk Schubert <dirk.schubert@arm.com> + + * aarch64-linux-nat.c (post_attach): New. + (aarch64_linux_nat_target::post_attach): Override post_attach to + record the number of hardware debug registers. + 2018-06-20 Tom Tromey <tom@tromey.com> * python/py-param.c (add_setshow_generic): Make parameters const. |