Accepting request 238792 from devel:gcc

- Add baselibs.conf to sources.

- For _with_testsuite require gcc-fortran, not gcc-gfortran.
  [bnc#884399]

- Fix debugging of threaded 31bit inferiors on s390x
  (gdb-7.7-bnc877566.patch).  [bnc#877566]
- Add patchlist.pl and patchname_get.sh as sources.

- Fix build on s390 (gdb-fix-s390-build.patch).

OBS-URL: https://build.opensuse.org/request/show/238792
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gdb?expand=0&rev=99
This commit is contained in:
Stephan Kulow 2014-07-01 05:05:17 +00:00 committed by Git OBS Bridge
commit d16e7e0e80
4 changed files with 72 additions and 1 deletions

26
gdb-7.7-bnc877566.patch Normal file
View File

@ -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

13
gdb-fix-s390-build.patch Normal file
View File

@ -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;
}

View File

@ -1,3 +1,26 @@
-------------------------------------------------------------------
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
- For _with_testsuite require gcc-fortran, not gcc-gfortran.
[bnc#884399]
-------------------------------------------------------------------
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
- Fix build on s390 (gdb-fix-s390-build.patch).
-------------------------------------------------------------------
Mon Feb 10 17:19:07 UTC 2014 - matz@suse.de

View File

@ -82,6 +82,11 @@ 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
Source12: baselibs.conf
#Fedora Packages begin
Patch1: gdb-6.3-rh-testversion-20041202.patch
Patch2: gdb-archer.patch
@ -195,6 +200,8 @@ 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
Patch1008: gdb-7.7-bnc877566.patch
BuildRequires: bison
BuildRequires: flex
@ -247,7 +254,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.
@ -441,6 +448,8 @@ find -name "*.info*"|xargs rm -f
%patch1002 -p1
%patch1004 -p1
%patch1006 -p1
%patch1007 -p1
%patch1008 -p1
find -name "*.orig" | xargs rm -f
! find -name "*.rej" # Should not happen.