Blame SOURCES/gdb-rhbz1105165-ibm-tdb-support-system-z-2of9.patch

01917d
commit 9b44a3a57d17ea2d35823780007a38daeeaec6a4
01917d
Author: Andreas Arnez <arnez@linux.vnet.ibm.com>
01917d
Date:   Tue May 13 14:55:53 2014 +0200
01917d
01917d
    S390: Fix erroneous offset in fill_gregset.
01917d
    
01917d
    This fixes a bug that leads to various failures when debugging a
01917d
    31-bit inferior with a 64-bit gdb on s390x.
01917d
01917d
Index: gdb-7.6.1/gdb/s390-nat.c
01917d
===================================================================
01917d
--- gdb-7.6.1.orig/gdb/s390-nat.c
01917d
+++ gdb-7.6.1/gdb/s390-nat.c
01917d
@@ -167,7 +167,7 @@ fill_gregset (const struct regcache *reg
01917d
 		  memset (p, 0, 4);
01917d
 		  p += 4;
01917d
 		}
01917d
-	      regcache_raw_collect (regcache, reg, p + 4);
01917d
+	      regcache_raw_collect (regcache, reg, p);
01917d
 	    }
01917d
 	}
01917d