-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgdbinit
37 lines (27 loc) · 876 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
set debuginfod enabled on
python
import os
GDB_HOME=os.environ.get("GDB_HOME", "~/.gdb/")
def init_peda():
gdb.execute(f"source {GDB_HOME}/peda/peda.py")
def init_peda_arm():
gdb.execute(f"source {GDB_HOME}/peda-arm/peda-arm.py")
def init_peda_intel():
gdb.execute(f"source {GDB_HOME}/peda-arm/peda-intel.py")
def init_pwndbg():
gdb.execute(f"source {GDB_HOME}/pwndbg/gdbinit.py")
gdb.execute(f"source {GDB_HOME}/splitmind/gdbinit.py")
import splitmind
(splitmind.Mind()
.below(display="backtrace")
.right(display="stack")
.right(display="regs")
.right(of="main", display="disasm")
.show("legend", on="disasm")
).build()
def init_gef():
gdb.execute(f"source {GDB_HOME}/gef/gef.py")
if "GDB_PWN_MANAGER" not in os.environ:
# Initialize a default plugin if none were executed
init_pwndbg()
end