aboutsummaryrefslogtreecommitdiff
path: root/opcodes/cgen-opc.in
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-02-13 22:35:43 +0000
committerDoug Evans <dje@google.com>1998-02-13 22:35:43 +0000
commitb2f18612927ff3193160cda4099d7848c4697912 (patch)
tree12d782ac470e9a10be2c473c8b9271b33c8fcd6e /opcodes/cgen-opc.in
parent8114673a2bc2a3c04761908e5f62725876ce3278 (diff)
downloadgdb-b2f18612927ff3193160cda4099d7848c4697912.zip
gdb-b2f18612927ff3193160cda4099d7848c4697912.tar.gz
gdb-b2f18612927ff3193160cda4099d7848c4697912.tar.bz2
* cgen-opc.in (@arch@_cgen_get_insn_operands): Handle empty
operand instance list. * m32r-opc.c: Regenerate.
Diffstat (limited to 'opcodes/cgen-opc.in')
-rw-r--r--opcodes/cgen-opc.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/opcodes/cgen-opc.in b/opcodes/cgen-opc.in
index af51ef2..9679b04 100644
--- a/opcodes/cgen-opc.in
+++ b/opcodes/cgen-opc.in
@@ -143,7 +143,8 @@ const CGEN_INSN *
return NULL;
for (i = 0, opinst = CGEN_INSN_OPERANDS (insn);
- CGEN_OPERAND_INSTANCE_TYPE (opinst) != CGEN_OPERAND_INSTANCE_END;
+ opinst != NULL
+ && CGEN_OPERAND_INSTANCE_TYPE (opinst) != CGEN_OPERAND_INSTANCE_END;
++i, ++opinst)
{
const CGEN_OPERAND *op = CGEN_OPERAND_INSTANCE_OPERAND (opinst);