summaryrefslogtreecommitdiff
path: root/py/profile.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-12-20 14:57:44 +1100
committerDamien George <damien.p.george@gmail.com>2019-12-20 14:57:44 +1100
commit073c5f3a40abd4bd7691f5468f0106ed4379ebfb (patch)
treec50d8c975f3842e9ef5098548f2ba61882860e8a /py/profile.c
parent95473980ef350174095887451d80690657f3315a (diff)
py/profile: Fix debug opcode decoding of MP_BC_RAISE_xxx opcodes.
Diffstat (limited to 'py/profile.c')
-rw-r--r--py/profile.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/py/profile.c b/py/profile.c
index f16d4d701..72726cdf5 100644
--- a/py/profile.c
+++ b/py/profile.c
@@ -875,10 +875,16 @@ STATIC const byte *mp_prof_opcode_decode(const byte *ip, const mp_uint_t *const_
instruction->qstr_opname = MP_QSTR_RETURN_VALUE;
break;
- case MP_BC_RAISE_VARARGS:
- unum = *ip++;
- instruction->qstr_opname = MP_QSTR_RAISE_VARARGS;
- instruction->arg = unum;
+ case MP_BC_RAISE_LAST:
+ instruction->qstr_opname = MP_QSTR_RAISE_LAST;
+ break;
+
+ case MP_BC_RAISE_OBJ:
+ instruction->qstr_opname = MP_QSTR_RAISE_OBJ;
+ break;
+
+ case MP_BC_RAISE_FROM:
+ instruction->qstr_opname = MP_QSTR_RAISE_FROM;
break;
case MP_BC_YIELD_VALUE: