]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix typo in ppc64_standard_linkage7
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 28 Jan 2014 16:49:13 +0000 (17:49 +0100)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 28 Jan 2014 17:02:35 +0000 (18:02 +0100)
The ppc64_standard_linkage7 pattern added by Alan's recent patch:
https://sourceware.org/ml/gdb-patches/2013-11/msg00274.html
contains a typo: the ELFv2 TOC slot offset is 24, not 40.
This was correct in the comment, but not the actual code.

ChangeLog:

* ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.

gdb/ChangeLog
gdb/ppc64-tdep.c

index 1abdc2dfda96c802da092ec96d0b20159540c0e6..f6241455ea3f85eab08583aebe55219f53693d9b 100644 (file)
@@ -1,3 +1,7 @@
+2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
+
 2014-01-23  Tom Tromey  <tromey@redhat.com>
 
        PR python/16485:
index 56da928dc63345f3a87fabb3712701aa8198933d..cbbbedc070ccfeb3f29f136c9567e5607f474c12 100644 (file)
@@ -289,7 +289,7 @@ static struct ppc_insn_pattern ppc64_standard_linkage6[] =
 static struct ppc_insn_pattern ppc64_standard_linkage7[] =
   {
     /* std r2, 24(r1) <optional> */
-    { -1, insn_ds (62, 2, 1, 40, 0), 1 },
+    { -1, insn_ds (62, 2, 1, 24, 0), 1 },
 
     /* ld r12, <any>(r2) */
     { insn_ds (-1, -1, -1, 0, -1), insn_ds (58, 12, 2, 0, 0), 0 },