Description
Recording a scenario from #2606
[A] failure was found when debugging IoT.js with static snapshots turned on, if an error was thrown an assertion failure was caused. The reason is the frame context's
bytecode_header_p
pointer was not a heap pointer. Thejerry_debugger_breakpoint_hit
function tries to set a compressed pointer which points tobytecode_header_p
with theJMEM_CP_SET_NON_NULL_POINTER
macro, which has an assertion that requires the above mentionedbytecode_header_p
to be a heap pointer, which is obviously not.
[Creating a a JerryScript-only test environment is n]ot a trivial task. You need a unit test which creates such an environment, and you also need the python debugger to do debugging. Hence it needs a new infrastructure basically, where instead of a .js, a binary is run by the debugger tester driver.