Trap registry
This commit is contained in:
@@ -408,6 +408,10 @@ HandleTrap(CONTEXT* context)
|
||||
{
|
||||
assert(sAlreadyHandlingTrap);
|
||||
|
||||
if (!CheckIfTrapAtAddress(ContextToPC(context))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
RecordTrap(ContextToPC(context));
|
||||
|
||||
// Unwind calls longjmp, so it doesn't run the automatic
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int8_t CheckIfTrapAtAddress(const uint8_t* pc);
|
||||
// Record the Trap code and wasm bytecode offset in TLS somewhere
|
||||
void RecordTrap(const uint8_t* pc);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user