Move PTRACE_GETREGSET and PTRACE_SETREGSET to nat/linux-ptrace.h
[binutils-gdb.git] / gdb / ppc-linux-nat.c
index c5a286bb97a07b57dfd0093bf4cf6def501f13b8..88ca49e3d449fff8b28f6ee310e7232af0a7b6a4 100644 (file)
@@ -2367,7 +2367,7 @@ ppc_linux_target_wordsize (void)
 
   errno = 0;
   msr = (long) ptrace (PTRACE_PEEKUSER, tid, PT_MSR * 8, 0);
-  if (errno == 0 && msr < 0)
+  if (errno == 0 && ppc64_64bit_inferior_p (msr))
     wordsize = 8;
 #endif