Add a crash / core dumps mechanism that can either be triggered manually or when faults occur. This will help with debugging both the Resurgence VM as well as programs running inside of it. Core dumps should contain the following:
a copy of the instructions and bytecode header re-encoded from the Codeholder
a list of the states of each recursive execute_instruction call, including the register values and the current instruction number they are at
a complete copy of all stack frames
a complete copy of the stack
This should be output in a portable binary format that can be used in other applications for debugging purposes.
Add a crash / core dumps mechanism that can either be triggered manually or when faults occur. This will help with debugging both the Resurgence VM as well as programs running inside of it. Core dumps should contain the following:
execute_instruction
call, including the register values and the current instruction number they are atThis should be output in a portable binary format that can be used in other applications for debugging purposes.