Blame SOURCES/gdb-rhbz1125820-ppc64le-enablement-21of37.patch

01917d
commit fa0079ea727e512d592fff1241a82a0a2f628903
01917d
Author: Ulrich Weigand <ulrich.weigand@de.ibm.com>
01917d
Date:   Tue Jan 28 17:49:13 2014 +0100
01917d
01917d
    Fix typo in ppc64_standard_linkage7
01917d
    
01917d
    The ppc64_standard_linkage7 pattern added by Alan's recent patch:
01917d
    https://sourceware.org/ml/gdb-patches/2013-11/msg00274.html
01917d
    contains a typo: the ELFv2 TOC slot offset is 24, not 40.
01917d
    This was correct in the comment, but not the actual code.
01917d
    
01917d
    ChangeLog:
01917d
    
01917d
    	* ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
01917d
01917d
Index: gdb-7.6.1/gdb/ppc64-tdep.c
01917d
===================================================================
01917d
--- gdb-7.6.1.orig/gdb/ppc64-tdep.c
01917d
+++ gdb-7.6.1/gdb/ppc64-tdep.c
01917d
@@ -289,7 +289,7 @@ static struct ppc_insn_pattern ppc64_sta
01917d
 static struct ppc_insn_pattern ppc64_standard_linkage7[] =
01917d
   {
01917d
     /* std r2, 24(r1) <optional> */
01917d
-    { -1, insn_ds (62, 2, 1, 40, 0), 1 },
01917d
+    { -1, insn_ds (62, 2, 1, 24, 0), 1 },
01917d
 
01917d
     /* ld r12, <any>(r2) */
01917d
     { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 12, 2, 0, 0), 0 },