diff options
author | Anthony Green <green@redhat.com> | 2009-06-06 13:02:21 +0000 |
---|---|---|
committer | Anthony Green <green@redhat.com> | 2009-06-06 13:02:21 +0000 |
commit | 0e7c7f11f471e3350d50c08fda8e3ddf055940f2 (patch) | |
tree | 3a13f3abda519b99a4a4aa0a8b05d6a69b0ac79d /opcodes/moxie-dis.c | |
parent | 710ab2870ffb401c7365ab594108cd9b1b46fcb9 (diff) | |
download | gdb-0e7c7f11f471e3350d50c08fda8e3ddf055940f2.zip gdb-0e7c7f11f471e3350d50c08fda8e3ddf055940f2.tar.gz gdb-0e7c7f11f471e3350d50c08fda8e3ddf055940f2.tar.bz2 |
Print moxie addresses nicely.
Diffstat (limited to 'opcodes/moxie-dis.c')
-rw-r--r-- | opcodes/moxie-dis.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/opcodes/moxie-dis.c b/opcodes/moxie-dis.c index b1d123f..d63eb2d 100644 --- a/opcodes/moxie-dis.c +++ b/opcodes/moxie-dis.c @@ -93,6 +93,17 @@ print_insn_moxie (bfd_vma addr, struct disassemble_info * info) length = 6; } break; + case MOXIE_F1_M: + { + unsigned imm; + if ((status = info->read_memory_func (addr + 2, buffer, 4, info))) + goto fail; + imm = bfd_getb32 (buffer); + fpr (stream, "%s\t", opcode->name); + info->print_address_func ((bfd_vma) imm, info); + length = 6; + } + break; case MOXIE_F1_AiB: fpr (stream, "%s\t(%s), %s", opcode->name, reg_names[OP_A(iword)], reg_names[OP_B(iword)]); |