-
Notifications
You must be signed in to change notification settings - Fork 9
/
gdbinit
59 lines (45 loc) · 1007 Bytes
/
gdbinit
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# yyf: close without confirm
set confirm off
# yyf: logging
set logging on
set logging file gdb.txt
set logging overwrite off
set logging redirect off
set trace-commands on
# yyf: info display pagination
set pagination off
# yyf: startup quickly, only 11.x branch of GDB
# set startup-quietly on
# yyf: step in func without debug info
set step-mode on
# yyf: show tail call info
set debug entry-values 1
set disassembly-flavor intel
set width unlimited
set height unlimited
#source ~/gdbinit/binbase.py
#source ~/gdbinit/heap.py
#define peda
# source ~/gdbinit/load_peda.py
#end
#define gef
# source ~/gdbinit/gef/gef.py
#end
define tcp
file socat
catch exec
set follow-fork-mode child
r tcp4-l:$arg0,bind=127.0.0.1,reuseaddr exec:$arg1,sigint,stderr
end
set history filename ~/.gdb_history
set history save on
set history size 100000
set history remove-duplicates 10
define multicont
set $total = $arg0
set $i = 0
while($i<$total)
set $i = $i + 1
continue
end
end