Based on the code above, I was trying to implement: 'Pushes the current exception to the top of the stack. ', which ended up with Segmentation fault (core dumped).
When I change stack.push(except.cast<ASTNode>()); to blocks.push(except); , it gives this error:
Error decompyling file.pyc: vector::_M_range_check: __n (which is 3) >= this->size() (which is 2)
Not sure what is the correct way to write in pycdc. Thanks for any advise given in advance.
Trying to implement opcode
PUSH_EXC_INFO
with the notes from https://docs.python.org/3/library/dis.html#opcode-PUSH_EXC_INFOBased on the code above, I was trying to implement: 'Pushes the current exception to the top of the stack. ', which ended up with Segmentation fault (core dumped).
When I change
stack.push(except.cast<ASTNode>());
toblocks.push(except);
, it gives this error: Error decompyling file.pyc: vector::_M_range_check: __n (which is 3) >= this->size() (which is 2)Not sure what is the correct way to write in
pycdc
. Thanks for any advise given in advance.