diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2014-01-28 17:49:13 +0100 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2014-01-28 17:49:13 +0100 |
commit | fa0079ea727e512d592fff1241a82a0a2f628903 (patch) | |
tree | 82c6ac91a5f365f95340390c5d3f2ec6177e581f | |
parent | 0a9c7b2bf1903322a9b03d76c9c171bcd2ad3cf0 (diff) | |
download | gdb-fa0079ea727e512d592fff1241a82a0a2f628903.zip gdb-fa0079ea727e512d592fff1241a82a0a2f628903.tar.gz gdb-fa0079ea727e512d592fff1241a82a0a2f628903.tar.bz2 |
Fix typo in ppc64_standard_linkage7
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.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/ppc64-tdep.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d6f5515..a7097e8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2014-01-28 Ulrich Weigand <uweigand@de.ibm.com> + + * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo. + 2014-01-28 Joel Brobecker <brobecker@adacore.com> * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist): diff --git a/gdb/ppc64-tdep.c b/gdb/ppc64-tdep.c index 56da928..cbbbedc 100644 --- a/gdb/ppc64-tdep.c +++ b/gdb/ppc64-tdep.c @@ -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 }, |