summaryrefslogtreecommitdiff
path: root/opcodes
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
commit85e0963cfd025864862e568f1ef55375fb571044 (patch)
tree01443a45b91fe761c00b11781bc23efe460d5f79 /opcodes
parent8c0151b6957286b3b948499d7d312cece687fff7 (diff)
downloadgdb-85e0963cfd025864862e568f1ef55375fb571044.tar.gz
* m68k-dis.c (print_insn_m68k): Emit undefined instructions as
.short directives so that they can be reassembled.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/m68k-dis.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 3b48b759adb..c844c8d3628 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2010-05-27 jason Duerstock <jason.duerstock+binutils@gmail.com>
+
+ * m68k-dis.c (print_insn_m68k): Emit undefined instructions as
+ .short directives so that they can be reassembled.
+
2010-05-26 Catherine Moore <clm@codesourcery.com>
David Ung <davidu@mips.com>
diff --git a/opcodes/m68k-dis.c b/opcodes/m68k-dis.c
index 326e4299904..e136a2535c7 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;
}