Reset errno before PTRACE_PEEKUSER for MIPS DSP_CONTROL
[deliverable/binutils-gdb.git] / gdb / mips-linux-nat.c
index 88faa1edf69200c9353e5914ea090aa2922c00f8..ffc8411ca3bcc3cf7f67c4031353ff35b4085da2 100644 (file)
@@ -439,6 +439,7 @@ mips_linux_read_description (struct target_ops *ops)
       if (tid == 0)
        tid = ptid_get_pid (inferior_ptid);
 
+      errno = 0;
       ptrace (PTRACE_PEEKUSER, tid, DSP_CONTROL, 0);
       switch (errno)
        {
This page took 0.024422 seconds and 4 git commands to generate.