keiths / rpms / gdb

Forked from rpms/gdb 4 days ago
Clone
a8767b3
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
f524ac5
From: Fedora GDB patches <invalid@email.com>
f524ac5
Date: Fri, 27 Oct 2017 21:07:50 +0200
f524ac5
Subject: gdb-jit-reader-multilib.patch
f524ac5
f637971
;; Fix jit-reader.h for multi-lib.
f637971
;;=push+jan
f637971
Jan Kratochvil 2f7f533
diff --git a/gdb/configure b/gdb/configure
Jan Kratochvil 2f7f533
--- a/gdb/configure
Jan Kratochvil 2f7f533
+++ b/gdb/configure
9c37e8a
@@ -9612,10 +9612,12 @@ _ACEOF
Jan Kratochvil 2f7f533
 
Jan Kratochvil 2f7f533
 
Jan Kratochvil 2f7f533
 
Jan Kratochvil 2f7f533
-if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
Jan Kratochvil 2f7f533
-  TARGET_PTR="unsigned long"
Jan Kratochvil 2f7f533
-elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
Jan Kratochvil 2f7f533
+# Try to keep TARGET_PTR the same across archs so that jit-reader.h file
Jan Kratochvil 2f7f533
+# content is the same for multilib distributions.
Jan Kratochvil 2f7f533
+if test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
Jan Kratochvil 2f7f533
   TARGET_PTR="unsigned long long"
Jan Kratochvil 2f7f533
+elif test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
Jan Kratochvil 2f7f533
+  TARGET_PTR="unsigned long"
Jan Kratochvil 2f7f533
 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
Jan Kratochvil 2f7f533
   TARGET_PTR="unsigned __int128"
Jan Kratochvil 2f7f533
 else
Jan Kratochvil 2f7f533
diff --git a/gdb/configure.ac b/gdb/configure.ac
Jan Kratochvil 2f7f533
--- a/gdb/configure.ac
Jan Kratochvil 2f7f533
+++ b/gdb/configure.ac
9c37e8a
@@ -812,10 +812,12 @@ AC_CHECK_SIZEOF(unsigned long long)
Jan Kratochvil 2f7f533
 AC_CHECK_SIZEOF(unsigned long)
Jan Kratochvil 2f7f533
 AC_CHECK_SIZEOF(unsigned __int128)
Jan Kratochvil 2f7f533
 
Jan Kratochvil 2f7f533
-if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
Jan Kratochvil 2f7f533
-  TARGET_PTR="unsigned long"
Jan Kratochvil 2f7f533
-elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
Jan Kratochvil 2f7f533
+# Try to keep TARGET_PTR the same across archs so that jit-reader.h file
Jan Kratochvil 2f7f533
+# content is the same for multilib distributions.
Jan Kratochvil 2f7f533
+if test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
Jan Kratochvil 2f7f533
   TARGET_PTR="unsigned long long"
Jan Kratochvil 2f7f533
+elif test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
Jan Kratochvil 2f7f533
+  TARGET_PTR="unsigned long"
Jan Kratochvil 2f7f533
 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
Jan Kratochvil 2f7f533
   TARGET_PTR="unsigned __int128"
Jan Kratochvil 2f7f533
 else