-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gdbinit
90 lines (81 loc) · 3.17 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
79
80
81
82
83
84
85
86
87
88
89
90
# **************************************************************************** #
# #
# ::: :::::::: #
# .gdbinit :+: :+: :+: #
# +:+ +:+ +:+ #
# By: passunca <passunca@student.42porto.com> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/01/16 18:32:21 by passunca #+# #+# #
# Updated: 2024/01/16 18:32:23 by passunca ### ########.fr #
# #
# **************************************************************************** #
set auto-load safe-path /
### Commands
# Valgrind integration
define mchk
monitor leak_check full reachable any
end
# Custom Commands
define rfr
refresh
end
# __________________gdb options_________________
# # set to 1 to have ARM target debugging as default, use the "arm" command to switch inside gdb
# set $ARM = 0
# # set to 0 if you have problems with the colorized prompt - reported by Plouj with Ubuntu gdb 7.2
# set $COLOREDPROMPT = 1
# # color the first line of the disassembly - default is green, if you want to change it search for
# # SETCOLOR1STLINE and modify it :-)
# set $SETCOLOR1STLINE = 1
# # set to 0 to remove disassembly display (useful for scripted commands mass dumping)
# set $SHOWDISASM = 1
# # set to 0 to remove display of objectivec messages (default is 1)
# set $SHOWOBJECTIVEC = 1
# # set to 0 to remove display of cpu registers (default is 1)
# set $SHOWCPUREGISTERS = 1
# # set to 1 to enable display of stack (default is 0)
# set $SHOWSTACK = 1
# # set to 1 to enable display of data window (default is 0)
# set $SHOWDATAWIN = 0
# # set to 0 to disable colored display of changed registers
# set $SHOWREGCHANGES = 1
# # set to 1 so skip command to execute the instruction at the new location
# # by default it EIP/RIP will be modified and update the new context but not execute the instruction
# set $SKIPEXECUTE = 0
# # if $SKIPEXECUTE is 1 configure the type of execution
# # 1 = use stepo (do not get into calls), 0 = use stepi (step into calls)
# set $SKIPSTEP = 1
# # show the ARM opcodes - change to 0 if you don't want such thing (in x/i command)
# set $ARMOPCODES = 0
# # x86 disassembly flavor: 0 for Intel, 1 for AT&T
# set $X86FLAVOR = 0
# # use colorized output or not
# set $USECOLOR = 1
# # to use with remote KDP
# set $KDP64BITS = 1
# set $64BITS = 1
# macOS version works better with this setting off
# set startup-with-shell off
# set confirm off
# set verbose off
# set history filename ~/.gdb_history
# set history save
#
# # set output-radix 0x10
# # set input-radix 0x10
#
# # These make gdb never pause in its output
# set height 0
# set width 0
#
# set $SHOW_CONTEXT = 1
# set $SHOW_NEST_INSN = 0
#
# set $CONTEXTSIZE_STACK = 6
# set $CONTEXTSIZE_DATA = 8
# set $CONTEXTSIZE_CODE = 8
# Set
set style enabled
set style sources on
# __________________end gdb options_________________
#