-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gdbinit
47 lines (36 loc) · 988 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
echo "hello .gdbinit !\n"
# see https://devarea.com/10-things-you-can-only-do-with-gdb/#.XiPwDMj0n8A\n
set prompt \033[1;92m[gdb] > \033[0m
#-------------------------------------------------------------------- Scripts ---
# set data-directory ./scripts
# source ./scripts/.gdbinit-gef.py
#--------------------------------------------------------Better GDB defaults ---
set history save
set verbose off
set print pretty on
set print array off
set print array-indexes on
define hook-backtrace
echo \033[01;33m
end
define hookpost-backtrace
echo \033[0m\n
end
# Don't wrap line or the coloring regexp won't work.
set width 0
#------------------------------------------------------------------- Commands ---
define sf
where
info args
info locals
end
#---------------------------------------------------------------- Playground ---
# set args "toolongstring"
break builtin_list
# commands
# explore a
# print b
# print *argv@2
# end
run
explore arguments->cells[0]->cells[0]