]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix regression on aarch64-linux gdbserver
authorTom Tromey <tromey@adacore.com>
Fri, 19 Apr 2024 13:54:19 +0000 (07:54 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 2 May 2024 16:04:14 +0000 (10:04 -0600)
commit0ee25f97d21e7d57b9fdb0dd0690638bb3d17361
treeac41b4657654e33d2b40bdd7440ee29ee49d8d2b
parent635d05b88f4823f46ef1ddbb3d438db16c0f6e71
Fix regression on aarch64-linux gdbserver

Commit 9a03f218 ("Fix gdb.base/watchpoint-unaligned.exp on aarch64")
fixed a watchpoint bug in gdb -- but did not touch the corresponding
code in gdbserver.

This patch moves the gdb code into gdb/nat, so that it can be shared
with gdbserver, and then changes gdbserver to use it, fixing the bug.

This is yet another case where having a single back end would prevent
bugs.

I tested this using the AdaCore internal gdb testsuite.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29423
Approved-By: Luis Machado <luis.machado@arm.com>
gdb/aarch64-nat.c
gdb/aarch64-nat.h
gdb/nat/aarch64-hw-point.c
gdb/nat/aarch64-hw-point.h
gdbserver/linux-aarch64-low.cc