Skip to content

Commit 073c5f3

Browse files
committed
py/profile: Fix debug opcode decoding of MP_BC_RAISE_xxx opcodes.
1 parent 9547398 commit 073c5f3

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

py/profile.c

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -875,10 +875,16 @@ STATIC const byte *mp_prof_opcode_decode(const byte *ip, const mp_uint_t *const_
875875
instruction->qstr_opname = MP_QSTR_RETURN_VALUE;
876876
break;
877877

878-
case MP_BC_RAISE_VARARGS:
879-
unum = *ip++;
880-
instruction->qstr_opname = MP_QSTR_RAISE_VARARGS;
881-
instruction->arg = unum;
878+
case MP_BC_RAISE_LAST:
879+
instruction->qstr_opname = MP_QSTR_RAISE_LAST;
880+
break;
881+
882+
case MP_BC_RAISE_OBJ:
883+
instruction->qstr_opname = MP_QSTR_RAISE_OBJ;
884+
break;
885+
886+
case MP_BC_RAISE_FROM:
887+
instruction->qstr_opname = MP_QSTR_RAISE_FROM;
882888
break;
883889

884890
case MP_BC_YIELD_VALUE:

0 commit comments

Comments
 (0)