ubsan: bpf: left shift cannot be represented in type 'DI' (aka 'long')
[deliverable/binutils-gdb.git] / gdb / nat / mips-linux-watch.c
index acfc7f41a98881d6c6fd55c5eb5abcc89563838a..124752f7c2fe4d225066d930c0c26abe1aebc1c7 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2009-2014 Free Software Foundation, Inc.
+/* Copyright (C) 2009-2019 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -15,9 +15,9 @@
    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 <sys/ptrace.h>
+#include "gdbsupport/common-defs.h"
+#include "nat/gdb_ptrace.h"
 #include "mips-linux-watch.h"
-#include "gdb_assert.h"
 
 /* Assuming usable watch registers REGS, return the irw_mask of
    register N.  */
@@ -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)
     {
This page took 0.027258 seconds and 4 git commands to generate.