aboutsummaryrefslogtreecommitdiff
path: root/opcodes/ppc-dis.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-07-07 01:34:04 +0000
committerAlan Modra <amodra@gmail.com>2003-07-07 01:34:04 +0000
commit8427c424251eeb9dfd53b39b54e77d6e8e7d4ba6 (patch)
tree3d9a10bbbc7c90e1ce85b6a03b3028df42364f7d /opcodes/ppc-dis.c
parent503e66900fddfec60fd5d8099413b4e04d65a7e7 (diff)
downloadgdb-8427c424251eeb9dfd53b39b54e77d6e8e7d4ba6.zip
gdb-8427c424251eeb9dfd53b39b54e77d6e8e7d4ba6.tar.gz
gdb-8427c424251eeb9dfd53b39b54e77d6e8e7d4ba6.tar.bz2
* ppc-opc.c: Remove NULL pointer checks. Formatting. Remove
extraneous ATTRIBUTE_UNUSED. * ppc-dis.c (print_insn_powerpc): Always pass a valid address to operand->extract.
Diffstat (limited to 'opcodes/ppc-dis.c')
-rw-r--r--opcodes/ppc-dis.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/opcodes/ppc-dis.c b/opcodes/ppc-dis.c
index 3df7dc1..b8b8b1a 100644
--- a/opcodes/ppc-dis.c
+++ b/opcodes/ppc-dis.c
@@ -1,5 +1,6 @@
/* ppc-dis.c -- Disassemble PowerPC instructions
- Copyright 1994, 1995, 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright 1994, 1995, 2000, 2001, 2002, 2003
+ Free Software Foundation, Inc.
Written by Ian Lance Taylor, Cygnus Support
This file is part of GDB, GAS, and the GNU binutils.
@@ -214,7 +215,7 @@ print_insn_powerpc (memaddr, info, bigendian, dialect)
/* Extract the value from the instruction. */
if (operand->extract)
- value = (*operand->extract) (insn, dialect, (int *) NULL);
+ value = (*operand->extract) (insn, dialect, &invalid);
else
{
value = (insn >> operand->shift) & ((1 << operand->bits) - 1);