[gdb/f18] Fix false "Unknown error 512" on x32 (H.J. Lu, BZ 956883).

Jan Kratochvil jankratochvil at fedoraproject.org
Sat Apr 27 16:44:53 UTC 2013


commit 89a972c8299b612c6b5643c8b0d38878f1cefb99
Author: Jan Kratochvil <jan.kratochvil at redhat.com>
Date:   Sat Apr 27 18:44:42 2013 +0200

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

 gdb-x86_64-i386-syscall-restart.patch |    2 +-
 gdb.spec                              |    5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gdb-x86_64-i386-syscall-restart.patch b/gdb-x86_64-i386-syscall-restart.patch
index d5d6b10..af3cccd 100644
--- a/gdb-x86_64-i386-syscall-restart.patch
+++ b/gdb-x86_64-i386-syscall-restart.patch
@@ -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
diff --git a/gdb.spec b/gdb.spec
index fdd395c..487e929 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -34,7 +34,7 @@ Version: 7.5.1
 
 # The release always contains a leading reserved number, start it at 1.
 # `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
-Release: 38%{?dist}
+Release: 39%{?dist}
 
 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain
 Group: Development/Debuggers
@@ -1451,6 +1451,9 @@ fi
 %endif # 0%{!?el5:1} || "%{_target_cpu}" == "noarch"
 
 %changelog
+* Sat Apr 27 2013 Jan Kratochvil <jan.kratochvil at redhat.com> - 7.5.1-39.fc18
+- Fix false "Unknown error 512" on x32 (H.J. Lu, BZ 956883).
+
 * Fri Apr 12 2013 Jan Kratochvil <jan.kratochvil at redhat.com> - 7.5.1-38.fc18
 - Fix crash on 'gdb ""' (BZ 951251)..
 


More information about the scm-commits mailing list