Fetch all registers before writing the core register notes.
[deliverable/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
 
This page took 0.05812 seconds and 4 git commands to generate.