Skip to content
This repository
tree: 6bb6a00b48
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 43 lines (29 sloc) 0.882 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
set $_exitcode = -999

set height 0
set pagination 0
set disassembly-flavor intel

handle SIGUSR1 nostop noprint
handle SIGUSR2 nostop noprint

handle SIGTERM nostop print pass
handle SIGPIPE nostop

define hook-stop
    if $_exitcode == -999
        echo \n:::::::::: ACTIVE BACKTRACE :::::::::::\n\n
        backtrace full

        echo \n:::::::::: FUNCTION ARGUMENTS :::::::::\n\n
        info args

        echo \n:::::::::: LOCAL VARIABLES ::::::::::::\n\n
        info locals

        echo \n:::::::::: REGISTER INFO ::::::::::::::\n\n
        info all-registers

        echo \n:::::::::: FPU STATUS :::::::::::::::::\n\n
        info float

        echo \n:::::::::: RAW DISASSEMBLY ::::::::::::\n\n
        disassemble $pc-50,+100

        echo \n:::::::::: THREAD BACKTRACES ::::::::::\n
        thread apply all backtrace full

        quit 1
    end

    quit
end

run
Something went wrong with that request. Please try again.