Fix false "Unknown error 512" on x32 (H.J. Lu, BZ 956883).

This commit is contained in:
Jan Kratochvil 2013-04-27 18:40:38 +02:00
commit 3344b6ba48
2 changed files with 5 additions and 2 deletions

View file

@ -102,7 +102,7 @@ gdb/
}
}
+
+ if (gdbarch_ptr_bit (gdbarch) == 32)
+ if (gdbarch_bfd_arch_info (gdbarch)->bits_per_word == 32)
+ {
+ /* Sign-extend %eax as during return from a syscall it is being checked
+ for -ERESTART* values -512 being above 0xfffffffffffffe00; tested by