diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2017-05-02 10:28:09 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-05-02 10:28:09 +0100 |
commit | fe50e98c9a22a89ca2e032b17aa7162452c3ad3b (patch) | |
tree | 375865e04ea7928e81faa4fce2ab57aad10cda11 /opcodes/arm-dis.c | |
parent | 122a483d4f19c8b0a7f3d265dad882bd4f2c868a (diff) | |
download | gdb-fe50e98c9a22a89ca2e032b17aa7162452c3ad3b.zip gdb-fe50e98c9a22a89ca2e032b17aa7162452c3ad3b.tar.gz gdb-fe50e98c9a22a89ca2e032b17aa7162452c3ad3b.tar.bz2 |
Fix value in comment of disassembled ARM type A opcodes.
* arm-dis.c (print_insn_thumb32): Fix value_in_comment.
Diffstat (limited to 'opcodes/arm-dis.c')
-rw-r--r-- | opcodes/arm-dis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c index a3e53db..a0a03ee 100644 --- a/opcodes/arm-dis.c +++ b/opcodes/arm-dis.c @@ -5733,7 +5733,7 @@ print_insn_thumb32 (bfd_vma pc, struct disassemble_info *info, long given) if (off || !U) { func (stream, ", #%c%u", U ? '+' : '-', off * 4); - value_in_comment = (off && U) ? 1 : -1; + value_in_comment = off * 4 * (U ? 1 : -1); } func (stream, "]"); if (W) @@ -5745,7 +5745,7 @@ print_insn_thumb32 (bfd_vma pc, struct disassemble_info *info, long given) if (W) { func (stream, "#%c%u", U ? '+' : '-', off * 4); - value_in_comment = (off && U) ? 1 : -1; + value_in_comment = off * 4 * (U ? 1 : -1); } else { |