diff options
author | Ben Elliston <bje@au.ibm.com> | 2004-02-13 03:21:49 +0000 |
---|---|---|
committer | Ben Elliston <bje@au.ibm.com> | 2004-02-13 03:21:49 +0000 |
commit | d1080cd6fad9e4e00f58b765323d519e9843cb5d (patch) | |
tree | ac54d94a47287e28d274e26d12e49799d83fa0e4 /opcodes | |
parent | 6cf172eb92455db7fadfd25bb291e8ba7922b662 (diff) | |
download | gdb-d1080cd6fad9e4e00f58b765323d519e9843cb5d.tar.gz |
* m32r-dis.c: Regenerate.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 4 | ||||
-rw-r--r-- | opcodes/m32r-dis.c | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index c8a2ded7456..683e7862e57 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2004-02-13 Ben Elliston <bje@wasabisystems.com> + + * m32r-dis.c: Regenerate. + 2004-01-27 Michael Snyder <msnyder@redhat.com> * sh-opc.h (sh_table): "fsrra", not "fssra". diff --git a/opcodes/m32r-dis.c b/opcodes/m32r-dis.c index 6e5ea70ce9c..46224626080 100644 --- a/opcodes/m32r-dis.c +++ b/opcodes/m32r-dis.c @@ -105,7 +105,8 @@ my_print_insn (cd, pc, info) /* Read the base part of the insn. */ - status = (*info->read_memory_func) (pc, buf, buflen, info); + status = (*info->read_memory_func) (pc - ((!big_p && (pc & 3) != 0) ? 2 : 0), + buf, buflen, info); if (status != 0) { (*info->memory_error_func) (status, pc, info); @@ -118,13 +119,13 @@ my_print_insn (cd, pc, info) return print_insn (cd, pc, info, buf, buflen); /* Print the first insn. */ - buf += (big_p ? 0 : 2); if ((pc & 3) == 0) { + buf += (big_p ? 0 : 2); if (print_insn (cd, pc, info, buf, 2) == 0) (*info->fprintf_func) (info->stream, UNKNOWN_INSN_MSG); + buf += (big_p ? 2 : -2); } - buf += (big_p ? 2 : -2); x = (big_p ? &buf[0] : &buf[1]); if (*x & 0x80) |