js/src/shell/js-gdb.gdb

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/shell/js-gdb.gdb	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,18 @@
     1.4 +define hookpost-run
     1.5 +    if ($sigaction)
     1.6 +        call free($sigaction)
     1.7 +        set $sigaction = 0
     1.8 +    end
     1.9 +end
    1.10 +
    1.11 +catch signal SIGSEGV
    1.12 +commands
    1.13 +    if !$sigaction
    1.14 +        set $sigaction = malloc(sizeof(sigaction))
    1.15 +    end
    1.16 +    set $ignored = __sigaction(11, 0, $sigaction)
    1.17 +    set $handler = ((struct sigaction *)$sigaction)->__sigaction_handler.sa_handler
    1.18 +    if $handler == AsmJSFaultHandler
    1.19 +        continue
    1.20 +    end
    1.21 +end

mercurial