X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Fppc-linux-nat.c;h=88ca49e3d449fff8b28f6ee310e7232af0a7b6a4;hb=ca9b78ce906d588bb9aab0c6739c2dbdacd62612;hp=c5a286bb97a07b57dfd0093bf4cf6def501f13b8;hpb=514c533895543e246eea1771ea67f3c3486006a4;p=binutils-gdb.git diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c index c5a286bb97a..88ca49e3d44 100644 --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c @@ -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