Commit e9cf6af0 authored by Klaus Aehlig's avatar Klaus Aehlig

Set reason trail for derived opcodes

As the base parameters also includes the reason trail,
set it, if not set already, together with the other
base parameters in the case of an opcode expanding to
a list of opcodes.
Signed-off-by: default avatarKlaus Aehlig <>
Reviewed-by: default avatarMichele Tartara <>
parent 94d6d0a3
......@@ -211,6 +211,10 @@ def _SetBaseOpParams(src, defcomment, dst):
if not getattr(dst, opcodes_base.COMMENT_ATTR, None):
dst.comment = defcomment
# FIXME: extend reason trail, showing the derivedness
if not getattr(dst, constants.OPCODE_REASON, None):
dst.reason = getattr(src, constants.OPCODE_REASON, [])
def _ProcessResult(submit_fn, op, result):
"""Examines opcode result.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment