diff options
author | Alan Modra <amodra@gmail.com> | 2019-05-11 09:42:00 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-05-11 10:07:56 +0930 |
commit | 0067be51e9436c5bbd961a4f54c10dbd50c491ea (patch) | |
tree | b1bd112807ea18867d290f083b1946ffe84d4163 /opcodes/ppc-dis.c | |
parent | 55cb8bb5a870380a9d5f45d8002b7ffab529f6ff (diff) | |
download | gdb-0067be51e9436c5bbd961a4f54c10dbd50c491ea.zip gdb-0067be51e9436c5bbd961a4f54c10dbd50c491ea.tar.gz gdb-0067be51e9436c5bbd961a4f54c10dbd50c491ea.tar.bz2 |
PowerPC objdump -Mraw
* ppc-dis.c (print_insn_powerpc) Don't skip optional operands
when -Mraw is in effect.
Diffstat (limited to 'opcodes/ppc-dis.c')
-rw-r--r-- | opcodes/ppc-dis.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c index d9ae42a..e9e3b36 100644 --- a/opcodes/ppc-dis.c +++ b/opcodes/ppc-dis.c @@ -749,9 +749,11 @@ print_insn_powerpc (bfd_vma memaddr, operand = powerpc_operands + *opindex; - /* If all of the optional operands have the value zero, - then don't print any of them. */ - if ((operand->flags & PPC_OPERAND_OPTIONAL) != 0) + /* If all of the optional operands past this one have their + default value, then don't print any of them. Except in + raw mode, print them all. */ + if ((operand->flags & PPC_OPERAND_OPTIONAL) != 0 + && (dialect & PPC_OPCODE_RAW) == 0) { if (!skip_optional) skip_optional = skip_optional_operands (opindex, insn, dialect); |