]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: remove some unnecessary watchpoint_addr_within_range overrides
authorAndrew Burgess <aburgess@redhat.com>
Mon, 18 Aug 2025 10:49:21 +0000 (11:49 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Tue, 19 Aug 2025 14:57:14 +0000 (15:57 +0100)
commit4f68e8167e9a24903d88bc52892479a28ffaaabe
tree46d2f131b360b95f768ca0d773ea4940f73be25c
parent17e62fe5f78d33db23bf43eb7c20accd56e65ebe
gdb: remove some unnecessary watchpoint_addr_within_range overrides

While looking at the watchpoint code, I realised that AArch64, ARM,
and Loongarch all override watchpoint_addr_within_range with an
implementation that is the same as the default (but with the logic
written slightly differently).

Compare the deleted functions to default_watchpoint_addr_within_range
in target.c.

The only other targets that override watchpoint_addr_within_range are
ppc_linux_nat_target and remote_target, in both cases the
implementation is different to the default.

Lets remove these unnecessary overrides, and just use the default.

There should be no user visible changes after this commit.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/aarch64-nat.h
gdb/arm-linux-nat.c
gdb/loongarch-linux-nat.c