aboutsummaryrefslogtreecommitdiff
path: root/opcodes/m68k-dis.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2010-05-27 10:43:27 +0000
committerNick Clifton <nickc@redhat.com>2010-05-27 10:43:27 +0000
commitd8b24b9569b07ce0046ada5930d9aa1f4dc1658a (patch)
treefcc05cc331b027d0fdb47775eee8c52e39d06646 /opcodes/m68k-dis.c
parent1e5b037994b0e1cc7564bf8268af05678318c70c (diff)
downloadgdb-d8b24b9569b07ce0046ada5930d9aa1f4dc1658a.zip
gdb-d8b24b9569b07ce0046ada5930d9aa1f4dc1658a.tar.gz
gdb-d8b24b9569b07ce0046ada5930d9aa1f4dc1658a.tar.bz2
* m68k-dis.c (print_insn_m68k): Emit undefined instructions as
.short directives so that they can be reassembled.
Diffstat (limited to 'opcodes/m68k-dis.c')
-rw-r--r--opcodes/m68k-dis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/m68k-dis.c b/opcodes/m68k-dis.c
index 326e429..e136a25 100644
--- a/opcodes/m68k-dis.c
+++ b/opcodes/m68k-dis.c
@@ -1626,7 +1626,7 @@ print_insn_m68k (bfd_vma memaddr, disassemble_info *info)
if (val == 0)
/* Handle undefined instructions. */
- info->fprintf_func (info->stream, "0%o", (buffer[0] << 8) + buffer[1]);
+ info->fprintf_func (info->stream, ".short 0x%04x", (buffer[0] << 8) + buffer[1]);
return val ? val : 2;
}