X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fia64-linux-nat.c;h=8f36ea78e762ceeb3a44ceef113ce26ce478c5ed;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=54f76b9238d23aba5d57b3daf94f413fb523e50f;hpb=c2a6c5da37c0135acdb859ca819870980db69b77;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ia64-linux-nat.c b/gdb/ia64-linux-nat.c index 54f76b9238..8f36ea78e7 100644 --- a/gdb/ia64-linux-nat.c +++ b/gdb/ia64-linux-nat.c @@ -1,7 +1,7 @@ /* Functions specific to running gdb native on IA-64 running GNU/Linux. - Copyright (C) 1999-2018 Free Software Foundation, Inc. + Copyright (C) 1999-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -28,7 +28,7 @@ #include #include "nat/gdb_ptrace.h" -#include "gdb_wait.h" +#include "gdbsupport/gdb_wait.h" #ifdef HAVE_SYS_REG_H #include #endif @@ -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); @@ -921,8 +923,9 @@ ia64_linux_nat_target::low_status_is_event (int status) || WSTOPSIG (status) == SIGILL); } +void _initialize_ia64_linux_nat (); void -_initialize_ia64_linux_nat (void) +_initialize_ia64_linux_nat () { /* Register the target. */ linux_target = &the_ia64_linux_nat_target;