forked from DoomHammer/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gdbinit
46 lines (36 loc) · 1.19 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
# Saving history by default
set history filename ~/.gdb_history
set history save
# No need to set the window size as scrolling should be enabled
set height 0
set width 0
# Pretty printing of structures
set print pretty
# Allow setting pending breakpoints
set breakpoint pending on
# Tell GDB you know what you are doing
set confirm off
#------------------------------------------------------------------------------
# Functions.
# Courtesy of https://github.com/s3rvac/dotfiles/blob/master/gdb/.gdbinit
#------------------------------------------------------------------------------
# Disable TUI.
define dt
tui disable
end
# Enable TUI.
define et
tui enable
# Display the source and assembly window.
layout split
# Switch focus to the command window so that arrow keys work as expected
# (history up/down and movement on the command line instead of movement in
# the source-code window).
focus cmd
end
#------------------------------------------------------------------------------
# Aliases.
#------------------------------------------------------------------------------
# Refreshes the screen (e.g. after the output from the debugged program has
# cluttered the screen).
alias -a rf = refresh