aboutsummaryrefslogtreecommitdiff
path: root/opcodes/ppc-dis.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-05-11 09:42:00 +0930
committerAlan Modra <amodra@gmail.com>2019-05-11 10:07:56 +0930
commit0067be51e9436c5bbd961a4f54c10dbd50c491ea (patch)
treeb1bd112807ea18867d290f083b1946ffe84d4163 /opcodes/ppc-dis.c
parent55cb8bb5a870380a9d5f45d8002b7ffab529f6ff (diff)
downloadgdb-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.c8
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);