-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gdbinit
30 lines (26 loc) · 908 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
# Initiliaze pwndbg
source /usr/share/pwndbg/gdbinit.py
set context-clear-screen on
set follow-fork-mode parent
# Initialize splitmind
source /home/olepor/.config/sway/scripts/layouts/pwndbg/splitmind/gdbinit.py
# My current pwndebug window setup
python
import splitmind
(splitmind.Mind()
.tell_splitter(show_titles=True)
.tell_splitter(set_title="Main")
.right(display="backtrace", size="25%")
.above(of="main", display="disasm", size="80%", banner="top")
.show("code", on="disasm", banner="none")
.right(cmd='tty; tail -f /dev/null', size="65%", clearing=False)
.tell_splitter(set_title='Input / Output')
.above(display="stack", size="75%")
.above(display="legend", size="25")
.show("regs", on="legend")
.below(of="backtrace", cmd="ipython", size="30%")
).build(nobanner=True)
end
set context-code-lines 30
set context-source-code-lines 30
set context-sections "regs args code disasm stack backtrace"