aboutsummaryrefslogtreecommitdiff
path: root/gdb/aarch64-nat.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-04-19 07:54:19 -0600
committerTom Tromey <tromey@adacore.com>2024-05-02 10:04:14 -0600
commit0ee25f97d21e7d57b9fdb0dd0690638bb3d17361 (patch)
treeac41b4657654e33d2b40bdd7440ee29ee49d8d2b /gdb/aarch64-nat.h
parent635d05b88f4823f46ef1ddbb3d438db16c0f6e71 (diff)
downloadgdb-0ee25f97d21e7d57b9fdb0dd0690638bb3d17361.zip
gdb-0ee25f97d21e7d57b9fdb0dd0690638bb3d17361.tar.gz
gdb-0ee25f97d21e7d57b9fdb0dd0690638bb3d17361.tar.bz2
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>
Diffstat (limited to 'gdb/aarch64-nat.h')
-rw-r--r--gdb/aarch64-nat.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/gdb/aarch64-nat.h b/gdb/aarch64-nat.h
index 947d280..ec85524 100644
--- a/gdb/aarch64-nat.h
+++ b/gdb/aarch64-nat.h
@@ -45,14 +45,6 @@ struct aarch64_debug_reg_state *aarch64_get_debug_reg_state (pid_t pid);
void aarch64_remove_debug_reg_state (pid_t pid);
-/* Helper for the "stopped_data_address" target method. Returns TRUE
- if a hardware watchpoint trap at ADDR_TRAP matches a set
- watchpoint. The address of the matched watchpoint is returned in
- *ADDR_P. */
-
-bool aarch64_stopped_data_address (const struct aarch64_debug_reg_state *state,
- CORE_ADDR addr_trap, CORE_ADDR *addr_p);
-
/* Helper functions used by aarch64_nat_target below. See their
definitions. */