aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.nat
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-03-22 12:05:43 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2022-03-22 12:05:43 -0700
commit065a00b3a461463cca766ac6bb33e3be436397bd (patch)
treebb7761b78a3d276940938ce646aecc9b3d46bf0e /gdb/configure.nat
parenta3627b54280ba306766f2689fb35442f24c4c313 (diff)
downloadgdb-065a00b3a461463cca766ac6bb33e3be436397bd.zip
gdb-065a00b3a461463cca766ac6bb33e3be436397bd.tar.gz
gdb-065a00b3a461463cca766ac6bb33e3be436397bd.tar.bz2
Add support for hardware breakpoints/watchpoints on FreeBSD/Aarch64.
This shares aarch64-nat.c and nat/aarch64-hw-point.c with the Linux native target. Since FreeBSD writes all of the debug registers in one ptrace op, use an unordered_set<> to track the "dirty" state for threads rather than bitmasks of modified registers.
Diffstat (limited to 'gdb/configure.nat')
-rw-r--r--gdb/configure.nat3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/configure.nat b/gdb/configure.nat
index 4f5850d..d219d6a 100644
--- a/gdb/configure.nat
+++ b/gdb/configure.nat
@@ -154,7 +154,8 @@ case ${gdb_host} in
case ${gdb_host_cpu} in
aarch64)
# Host: FreeBSD/aarch64
- NATDEPFILES="${NATDEPFILES} aarch64-fbsd-nat.o"
+ NATDEPFILES="${NATDEPFILES} aarch64-nat.o \
+ nat/aarch64-hw-point.o aarch64-fbsd-nat.o"
LOADLIBES=
;;
arm)