-
Notifications
You must be signed in to change notification settings - Fork 36
/
luad.gdb
42 lines (29 loc) · 882 Bytes
/
luad.gdb
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