michael@0: define hookpost-run michael@0: if ($sigaction) michael@0: call free($sigaction) michael@0: set $sigaction = 0 michael@0: end michael@0: end michael@0: michael@0: catch signal SIGSEGV michael@0: commands michael@0: if !$sigaction michael@0: set $sigaction = malloc(sizeof(sigaction)) michael@0: end michael@0: set $ignored = __sigaction(11, 0, $sigaction) michael@0: set $handler = ((struct sigaction *)$sigaction)->__sigaction_handler.sa_handler michael@0: if $handler == AsmJSFaultHandler michael@0: continue michael@0: end michael@0: end