diff -r 000000000000 -r 6474c204b198 js/src/shell/js-gdb.gdb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/shell/js-gdb.gdb Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,18 @@ +define hookpost-run + if ($sigaction) + call free($sigaction) + set $sigaction = 0 + end +end + +catch signal SIGSEGV +commands + if !$sigaction + set $sigaction = malloc(sizeof(sigaction)) + end + set $ignored = __sigaction(11, 0, $sigaction) + set $handler = ((struct sigaction *)$sigaction)->__sigaction_handler.sa_handler + if $handler == AsmJSFaultHandler + continue + end +end