-
Notifications
You must be signed in to change notification settings - Fork 2
/
gdbinit
50 lines (39 loc) · 1.39 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
add-auto-load-safe-path /home/twilco/projects/dotfiles/gdbInitChromium
add-auto-load-safe-path /home/twilco/projects/dotfiles/gdbInitServo
add-auto-load-safe-path /home/twilco/projects/dotfiles/gdbInitWebKit
define dbps
delete breakpoints
end
define sbps
save breakpoints breakpoints.txt
end
define hook-stop
refresh
sbps
end
refresh
# Disable confirmation requests.
set confirm off
# Try to reload breakpoints from the current directory (if we saved any last debug session).
set breakpoint pending on
source breakpoints.txt
set history filename ~/.gdb_history
set history save on
set history size 10000
# Log GDB output to file.
set logging on
# Pretty print structs and arrays.
set print pretty on
set print array on
# When displaying a pointer to an object, identify the actual (derived) type of the object rather than the declared
# type, using the virtual function table. Note that the virtual function table is required—this feature can only work
# for objects that have run-time type identification; a single virtual method in the object’s declared type is
# sufficient.
set print object on
# Remove duplicate history entries up to 5 entries back from the most recent.
# https://sourceware.org/gdb/onlinedocs/gdb/Command-History.html#Command-History
# set history remove-duplicates 5
# These make gdb never pause in its output.
# https://web.mit.edu/gnu/doc/html/gdb_16.html
set height 0
set width 0