forked from bndabbs/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gdbinit
78 lines (70 loc) · 1.32 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Some references:
# https://gist.github.com/chrislongo/3351197
######################
# GDB options
######################
set prompt \033[0;32m(gdb) \033[0m
set input-radix 0x10
set output-radix 0x10
set history filename ~/.gdb_history
set history save on
set history size 10000
set auto-load safe-path /
set auto-load local-gdbinit on
######################
# Breakpoint aliases
######################
define bpl
info breakpoints
end
document bpl
List all breakpoints.
end
define bpt
if $argc != 1
help bpt
else
tbreak $arg0
end
end
document bpt
Set a temporary breakpoint.
Will be deleted when hit!
Usage: bpt LOCATION
LOCATION may be a line number, function name, or "*" and an address.
end
define jto
if $argc != 1
help jto
else
tbreak $arg0
jump $arg0
end
end
document jto
Jump over code to a temporary breakpoint.
Will be deleted when hit!
Usage: jto LOCATION
LOCATION may be a line number, function name, or "*" and an address.
end
######################
# Process information
######################
define frame
info frame
info args
info locals
end
document frame
Print stack frame.
end
######################
# Process Control
######################
define stepo
tbreak +1
jump +1
end
document stepo
Steps over a single source code line
end