-/* Copyright (C) 2009-2014 Free Software Foundation, Inc.
+/* Copyright (C) 2009-2019 Free Software Foundation, Inc.
This file is part of GDB.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#include "common-defs.h"
-#include <sys/ptrace.h>
+#include "gdbsupport/common-defs.h"
+#include "nat/gdb_ptrace.h"
#include "mips-linux-watch.h"
/* Assuming usable watch registers REGS, return the irw_mask of
{
if (force || *watch_readback_valid == 0)
{
- if (ptrace (PTRACE_GET_WATCH_REGS, lwpid, watch_readback) == -1)
+ if (ptrace (PTRACE_GET_WATCH_REGS, lwpid, watch_readback, NULL) == -1)
{
*watch_readback_valid = -1;
return 0;
/* Convert GDB's TYPE to an IRW mask. */
uint32_t
-mips_linux_watch_type_to_irw (int type)
+mips_linux_watch_type_to_irw (enum target_hw_bp_type type)
{
switch (type)
{