You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
unwind_frame should be reasonably easy to test with. You pass it a set of instructions and a cpu state and it should just work. You can create your own stack memory by creating an std::array<uint32_t, N>, filling it with the necessary information you'd see from a typical function call and assign the last position of the stack as the stack pointer. Then the CPU state can be checked against what the expected CPU state should be after the unwind has taken place.
Might even be helpful to have a class manage generating the stack memory. Something like this perhaps?
unwind_frame
should be reasonably easy to test with. You pass it a set of instructions and a cpu state and it should just work. You can create your own stack memory by creating anstd::array<uint32_t, N>
, filling it with the necessary information you'd see from a typical function call and assign the last position of the stack as the stack pointer. Then the CPU state can be checked against what the expected CPU state should be after the unwind has taken place.Might even be helpful to have a class manage generating the stack memory. Something like this perhaps?
The text was updated successfully, but these errors were encountered: