aboutsummaryrefslogtreecommitdiff
path: root/opcodes/moxie-dis.c
diff options
context:
space:
mode:
authorAnthony Green <green@redhat.com>2012-09-14 10:49:03 +0000
committerAnthony Green <green@redhat.com>2012-09-14 10:49:03 +0000
commit1f9b75dde1191b37e6a40faf56ea2e92462ca89c (patch)
tree8971d467f1ce64f0ee90d67897f133ed24a356be /opcodes/moxie-dis.c
parent63b462666378cb44c54b7a00f3e323e6849e4f0e (diff)
downloadgdb-1f9b75dde1191b37e6a40faf56ea2e92462ca89c.zip
gdb-1f9b75dde1191b37e6a40faf56ea2e92462ca89c.tar.gz
gdb-1f9b75dde1191b37e6a40faf56ea2e92462ca89c.tar.bz2
Fix moxie disassembly for new branch semantics
Diffstat (limited to 'opcodes/moxie-dis.c')
-rw-r--r--opcodes/moxie-dis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/moxie-dis.c b/opcodes/moxie-dis.c
index 77821bb..38429de 100644
--- a/opcodes/moxie-dis.c
+++ b/opcodes/moxie-dis.c
@@ -205,7 +205,7 @@ print_insn_moxie (bfd_vma addr, struct disassemble_info * info)
{
case MOXIE_F3_PCREL:
fpr (stream, "%s\t", opcode->name);
- info->print_address_func ((bfd_vma) (addr + INST2OFFSET(iword)),
+ info->print_address_func ((bfd_vma) (addr + INST2OFFSET(iword) + 2),
info);
break;
default: