diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0e8e47d8d2..1c4dc5c94c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2020-05-16 Pedro Alves + + * ia64-linux-nat.c + (ia64_linux_nat_target) : + Declare method. + (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target. + 2020-05-15 Simon Marchi * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct). diff --git a/gdb/ia64-linux-nat.c b/gdb/ia64-linux-nat.c index 01cfa0decd..8f36ea78e7 100644 --- a/gdb/ia64-linux-nat.c +++ b/gdb/ia64-linux-nat.c @@ -80,6 +80,8 @@ public: /* Override linux_nat_target low methods. */ void low_new_thread (struct lwp_info *lp) override; bool low_status_is_event (int status) override; + + void enable_watchpoints_in_psr (ptid_t ptid); }; static ia64_linux_nat_target the_ia64_linux_nat_target; @@ -529,10 +531,10 @@ fill_fpregset (const struct regcache *regcache, #define IA64_PSR_DB (1UL << 24) #define IA64_PSR_DD (1UL << 39) -static void -enable_watchpoints_in_psr (ptid_t ptid) +void +ia64_linux_nat_target::enable_watchpoints_in_psr (ptid_t ptid) { - struct regcache *regcache = get_thread_regcache (ptid); + struct regcache *regcache = get_thread_regcache (this, ptid); ULONGEST psr; regcache_cooked_read_unsigned (regcache, IA64_PSR_REGNUM, &psr);