-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgdbinit
56 lines (54 loc) · 1.45 KB
/
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
set logging on
set logging file "gdb.log"
set logging overwrite on
set input-radix 0x10
set output-radix 0x10
set disable-randomization on
show disable-randomization
set height 0
set width 0
set follow-fork-mode child
show follow-fork-mode
set follow-exec-mode new
show follow-exec-mode
set step-mode on
show step-mode
set disassembly-flavor intel
set print pretty on
set print asm-demangle on
set print object on
#set scheduler-locking step
#show scheduler-locking
display/i $pc
define eflags
printf " IVVA | [IO] \n"
printf " DPFCVR| N[PL]ODITSZ A P C\n"
printf "..........%d%d%d%d%d%d|.%d[%d%d]%d%d%d%d%d%d.%d.%d.%d\n", \
(($eflags >> 0x15) & 1), \
(($eflags >> 0x14) & 1), \
(($eflags >> 0x13) & 1), \
(($eflags >> 0x12) & 1), \
(($eflags >> 0x11) & 1), \
(($eflags >> 0x10) & 1), \
(($eflags >> 0xE) & 1), \
(($eflags >> 0xD) & 1), \
(($eflags >> 0xC) & 1), \
(($eflags >> 0xB) & 1), \
(($eflags >> 0xA) & 1), \
(($eflags >> 9) & 1), \
(($eflags >> 8) & 1), \
(($eflags >> 7) & 1), \
(($eflags >> 6) & 1), \
(($eflags >> 4) & 1), \
(($eflags >> 2) & 1), \
($eflags & 1)
end
document eflags
Print eflags register.
end
define hook-stop
eflags
end
define pydump
set $_unused_void = _PyObject_Dump($arg0)
end