X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fnat%2Fmips-linux-watch.c;h=bbbe064fcecdf944961024dd6d85e34efd25dc79;hb=ffce45d2243e5f52f411e314fc4e1a69f431a81f;hp=02d83f65bf892d1707e0e52757f892f830e12fff;hpb=5826e159863b6cd69953dc01faf7c20414409909;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/nat/mips-linux-watch.c b/gdb/nat/mips-linux-watch.c index 02d83f65bf..bbbe064fce 100644 --- a/gdb/nat/mips-linux-watch.c +++ b/gdb/nat/mips-linux-watch.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2009-2015 Free Software Foundation, Inc. +/* Copyright (C) 2009-2017 Free Software Foundation, Inc. This file is part of GDB. @@ -164,7 +164,7 @@ mips_linux_read_watch_registers (long lwpid, { 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; @@ -198,7 +198,7 @@ mips_linux_read_watch_registers (long lwpid, /* 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) {