-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gdbinit
43 lines (36 loc) · 788 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
source ~/.peda/peda.py
source ~/.pwngdb/pwngdb.py
source ~/.pwngdb/angelheap/gdbinit.py
#define hook-run
python
import angelheap
angelheap.init_angelheap()
end
#end
# When inspecting large portions of code the scrollbar works better than 'less'
set pagination off
# Keep a history of all the commands typed. Search is possible using ctrl-r
set history save on
set history filename ~/.gdb_history
set history size 32768
set history expansion on
set prompt \001\033[38;5;214m\002[gdb]\> \001\033[m\002
# Custom functions
define re
if $argc == 0
target remote localhost:4444
else
target remote localhost:$arg0
end
end
document re
Syntax: re PORT
| Remote debug
end
define ret
stepuntil ret
end
document ret
Syntax: ret
| Step until ret instruction
end