From 63f4c825040f4f4834269077f25a3054161619f44425bc59aa44551cd5739f21 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Wed, 12 Feb 2014 16:25:12 +0000 Subject: [PATCH 1/6] - Fix build on s390 (gdb-fix-s390-build.patch). OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=94 --- gdb-fix-s390-build.patch | 13 +++++++++++++ gdb.changes | 5 +++++ gdb.spec | 2 ++ 3 files changed, 20 insertions(+) create mode 100644 gdb-fix-s390-build.patch diff --git a/gdb-fix-s390-build.patch b/gdb-fix-s390-build.patch new file mode 100644 index 0000000..d728870 --- /dev/null +++ b/gdb-fix-s390-build.patch @@ -0,0 +1,13 @@ +Index: gdb-7.7/gdb/s390-linux-nat.c +=================================================================== +--- gdb-7.7.orig/gdb/s390-linux-nat.c 2014-02-12 16:10:55.000000000 +0100 ++++ gdb-7.7/gdb/s390-linux-nat.c 2014-02-12 16:40:33.000000000 +0100 +@@ -563,7 +563,7 @@ s390_can_use_hw_breakpoint (int type, in + } + + static int +-s390_region_ok_for_hw_watchpoint (CORE_ADDR addr, int cnt) ++s390_region_ok_for_hw_watchpoint (CORE_ADDR addr, LONGEST cnt) + { + return 1; + } diff --git a/gdb.changes b/gdb.changes index 3cb16b8..53fce78 100644 --- a/gdb.changes +++ b/gdb.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 12 16:24:38 UTC 2014 - matz@suse.de + +- Fix build on s390 (gdb-fix-s390-build.patch). + ------------------------------------------------------------------- Mon Feb 10 17:19:07 UTC 2014 - matz@suse.de diff --git a/gdb.spec b/gdb.spec index 6474ee3..c77f715 100644 --- a/gdb.spec +++ b/gdb.spec @@ -195,6 +195,7 @@ Patch106: gdb-rhel5-compat.patch Patch1002: gdb-6.6-buildid-locate-rpm-suse.patch Patch1004: gdb-ia64-tdep.patch Patch1006: gdb-ppc64le.patch +Patch1007: gdb-fix-s390-build.patch BuildRequires: bison BuildRequires: flex @@ -441,6 +442,7 @@ find -name "*.info*"|xargs rm -f %patch1002 -p1 %patch1004 -p1 %patch1006 -p1 +%patch1007 -p1 find -name "*.orig" | xargs rm -f ! find -name "*.rej" # Should not happen. From 846b074b7ba8ca99922a701e1b481d0c5ff9ed811c0b0e66b77b56c335eb627e Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 14 May 2014 07:49:42 +0000 Subject: [PATCH 2/6] - Fix debugging of threaded 31bit inferiors on s390x (gdb-7.7-bnc877566.patch). [bnc#877566] OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=96 --- gdb-7.7-bnc877566.patch | 26 ++++++++++++++++++++++++++ gdb.changes | 6 ++++++ gdb.spec | 2 ++ 3 files changed, 34 insertions(+) create mode 100644 gdb-7.7-bnc877566.patch diff --git a/gdb-7.7-bnc877566.patch b/gdb-7.7-bnc877566.patch new file mode 100644 index 0000000..5f19cfb --- /dev/null +++ b/gdb-7.7-bnc877566.patch @@ -0,0 +1,26 @@ +This fixes a bug that leads to various failures when debugging a +31-bit inferior with a 64-bit gdb on s390x. + +gdb/ + * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in + call to regcache_raw_collect. +--- + gdb/s390-linux-nat.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gdb/s390-linux-nat.c b/gdb/s390-linux-nat.c +index 5c38952..45db7c9 100644 +--- a/gdb/s390-linux-nat.c ++++ b/gdb/s390-linux-nat.c +@@ -164,7 +164,7 @@ fill_gregset (const struct regcache *regcache, gregset_t *regp, int regno) + memset (p, 0, 4); + p += 4; + } +- regcache_raw_collect (regcache, reg, p + 4); ++ regcache_raw_collect (regcache, reg, p); + } + } + +-- +1.8.4.2 + diff --git a/gdb.changes b/gdb.changes index 53fce78..9e997a3 100644 --- a/gdb.changes +++ b/gdb.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 14 07:43:54 UTC 2014 - rguenther@suse.com + +- Fix debugging of threaded 31bit inferiors on s390x + (gdb-7.7-bnc877566.patch). [bnc#877566] + ------------------------------------------------------------------- Wed Feb 12 16:24:38 UTC 2014 - matz@suse.de diff --git a/gdb.spec b/gdb.spec index c77f715..931e9a7 100644 --- a/gdb.spec +++ b/gdb.spec @@ -196,6 +196,7 @@ Patch1002: gdb-6.6-buildid-locate-rpm-suse.patch Patch1004: gdb-ia64-tdep.patch Patch1006: gdb-ppc64le.patch Patch1007: gdb-fix-s390-build.patch +Patch1008: gdb-7.7-bnc877566.patch BuildRequires: bison BuildRequires: flex @@ -443,6 +444,7 @@ find -name "*.info*"|xargs rm -f %patch1004 -p1 %patch1006 -p1 %patch1007 -p1 +%patch1008 -p1 find -name "*.orig" | xargs rm -f ! find -name "*.rej" # Should not happen. From c7354614520f5d7c7096736528b59f7e03a8cce08c601dc6b6d4503bbc666b9f Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 14 May 2014 07:52:25 +0000 Subject: [PATCH 3/6] - Add patchlist.pl and patchname_get.sh as sources. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=97 --- gdb.changes | 1 + gdb.spec | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/gdb.changes b/gdb.changes index 9e997a3..9b0ffff 100644 --- a/gdb.changes +++ b/gdb.changes @@ -3,6 +3,7 @@ Wed May 14 07:43:54 UTC 2014 - rguenther@suse.com - Fix debugging of threaded 31bit inferiors on s390x (gdb-7.7-bnc877566.patch). [bnc#877566] +- Add patchlist.pl and patchname_get.sh as sources. ------------------------------------------------------------------- Wed Feb 12 16:24:38 UTC 2014 - matz@suse.de diff --git a/gdb.spec b/gdb.spec index 931e9a7..2fbf9c0 100644 --- a/gdb.spec +++ b/gdb.spec @@ -82,6 +82,10 @@ Source5: %{libstdcxxpython}.tar.bz2 # Provide gdbtui for RHEL-5 and RHEL-6 as it is removed upstream (BZ 797664). Source6: gdbtui +# Infrastructure to sync patches from the Fedora rpm +Source10: patchlist.pl +Source11: patchname_get.sh + #Fedora Packages begin Patch1: gdb-6.3-rh-testversion-20041202.patch Patch2: gdb-archer.patch From b63c5612e42249edc5d79e951818597f840e169c323525a5c9e52a53e0706f70 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 26 Jun 2014 09:03:30 +0000 Subject: [PATCH 4/6] - For _with_testsuite require gcc-fortran, not gcc-gfortran. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=98 --- gdb.changes | 5 +++++ gdb.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb.changes b/gdb.changes index 9b0ffff..5c31a2e 100644 --- a/gdb.changes +++ b/gdb.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 26 08:59:49 UTC 2014 - rguenther@suse.com + +- For _with_testsuite require gcc-fortran, not gcc-gfortran. + ------------------------------------------------------------------- Wed May 14 07:43:54 UTC 2014 - rguenther@suse.com diff --git a/gdb.spec b/gdb.spec index 2fbf9c0..3c7241c 100644 --- a/gdb.spec +++ b/gdb.spec @@ -253,7 +253,7 @@ BuildRequires: sharutils # gcc-objc++ is not covered by the GDB testsuite. BuildRequires: gcc BuildRequires: gcc-c++ -BuildRequires: gcc-gfortran +BuildRequires: gcc-fortran BuildRequires: gcc-java BuildRequires: gcc-objc # Copied from gcc-4.1.2-32. From 112e482afed6ec9801a3179809278a2c39ce875c9613f7195fe6ca5f33186f79 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 26 Jun 2014 09:05:12 +0000 Subject: [PATCH 5/6] [bnc#884399] OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=99 --- gdb.changes | 1 + 1 file changed, 1 insertion(+) diff --git a/gdb.changes b/gdb.changes index 5c31a2e..40cc9f2 100644 --- a/gdb.changes +++ b/gdb.changes @@ -2,6 +2,7 @@ Thu Jun 26 08:59:49 UTC 2014 - rguenther@suse.com - For _with_testsuite require gcc-fortran, not gcc-gfortran. + [bnc#884399] ------------------------------------------------------------------- Wed May 14 07:43:54 UTC 2014 - rguenther@suse.com From 215bb35eee191e69f236e9b7e57cf5f6c90ca07a3ba59a73efef0deaa6cf2841 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 26 Jun 2014 14:03:19 +0000 Subject: [PATCH 6/6] - Add baselibs.conf to sources. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gdb?expand=0&rev=100 --- gdb.changes | 5 +++++ gdb.spec | 1 + 2 files changed, 6 insertions(+) diff --git a/gdb.changes b/gdb.changes index 40cc9f2..c854ec7 100644 --- a/gdb.changes +++ b/gdb.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 26 14:00:26 UTC 2014 - rguenther@suse.com + +- Add baselibs.conf to sources. + ------------------------------------------------------------------- Thu Jun 26 08:59:49 UTC 2014 - rguenther@suse.com diff --git a/gdb.spec b/gdb.spec index 3c7241c..f0b323a 100644 --- a/gdb.spec +++ b/gdb.spec @@ -85,6 +85,7 @@ Source6: gdbtui # Infrastructure to sync patches from the Fedora rpm Source10: patchlist.pl Source11: patchname_get.sh +Source12: baselibs.conf #Fedora Packages begin Patch1: gdb-6.3-rh-testversion-20041202.patch