forked from quarnster/SublimeGDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SublimeGDB.sublime-settings
168 lines (141 loc) · 5.9 KB
/
SublimeGDB.sublime-settings
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{
// All options in here can also be specified in your project settings
// with a prepended "sublimegdb_". You probably want to
// have something like this in your project settings:
//
// "settings":
// {
// "sublimegdb_workingdir": "${folder:${project_path:your_executable_name}}",
// // NOTE: You MUST provide --interpreter=mi for the plugin to work
// "sublimegdb_commandline": "gdb --interpreter=mi ./your_executable_name"
//
// }
//
// generalized pattern for using always the current open file with an executable name
// as the current file
// "settings":
// {
// "sublimegdb_workingdir": "${folder: ${file}}",
// // put your arguments hear
// "sublimegdb_arguments": "",
// // NOTE: You MUST provide --interpreter=mi for the plugin to work
// "sublimegdb_commandline": "gdb --interpreter=mi --args ./${file_base_name}"
//
//
// }
//
// ${home}, ${project_path:}, ${folder:}, ${file} and ${file_base_name}
// tokens can be used in 'workingdir', 'commandline', 'arguments' options.
//
// ${home} is replaced with the value of the HOME environment variable.
//
// ${project_path:} tries to find a file with the given name in all the registered project folders and
// returns the first file found, or the original file name if none is found.
// Example: ${project_path:main.cpp} tries to find a file named "main.cpp" relative
// to the current project's folders. If none is found, it is replaced with "main.cpp".
//
// ${folder:} is replaced with the dirname of the given path.
// Example: ${folder:/path/to/file} is replaced with "/path/to".
// "workingdir": "/tmp",
//
// ${file} is replaced with absolute path to currently open file (if any)
// Example: /home/user/main.cpp
//
// ${file_base_name} is replaced with name without extension of currently
// open file (if any)
// Example: replaced with "main" for file "/home/user/main.cpp"
"workingdir": "${folder:${file}}",
// NOTE: You MUST provide --interpreter=mi for the plugin to work
// "commandline": "gdb --interpreter=mi ./executable",
"commandline": "gdb --interpreter=mi ${folder:${file}}/${file_base_name}",
// Arguments for the program.
// Example: to run "./executable foo bar"
// "arguments": "foo bar"
// To provide user input (stdin) use
// "arguments": "< input.dat"
"arguments": "",
// GDB Server
// Specify a command and working dir for launching a GDB Server
// This is useful for dealing with "remote" servers that are actually locally
// connected JTAG boxes
"server_workingdir": "notset",
"server_commandline": "notset",
// The command to use to run the program.
// If you are attaching to a remote program, you
// probably want to change this to -exec-continue
"exec_cmd": "-exec-run",
// Load the image to the remote target
"load_cmd": "-target-download",
// Immediately run the target upload connecting
// When attaching to a remote program, you
// may want to set this to false
"run_after_init": true,
// Attempt to update stack information while the program is running
// If your remote target does not support non-stop, set this to false
"update_while_running" : true,
// Attach to a remote target? This is needed here because "-gdb-set target-async 1" must be
// done prior to attaching
"attach_cmd" : "notset",
// For the larger binaries with lot of shared libraries
// the loading within the gdb could take much longer.
// Configure the thread wait timeout by setting gdb_timeout
"gdb_timeout": 20,
// Define debugging window layout (window split)
// first define column/row separators, then refer to them to define cells
"layout":
{
"cols": [0.0, 0.33, 0.66, 1.0],
"rows": [0.0, 0.75, 1.0],
"cells":
[ // c1 r1 c2 r2
[0, 0, 3, 1], // -> (0.00, 0.00), (1.00, 0.75)
[0, 1, 1, 2], // -> (0.00, 0.75), (0.33, 1.00)
[1, 1, 2, 2], // -> (0.33, 0.75), (0.66, 1.00)
[2, 1, 3, 2] // -> (0.66, 0.75), (1.00, 1.00)
]
},
// visual stuff
"breakpoint_scope": "keyword.gdb",
"breakpoint_icon": "circle",
"position_scope": "entity.name.class",
"position_icon": "bookmark",
"changed_variable_scope": "entity.name.class",
"changed_variable_icon": "",
// The group used for opening files
"file_group": 0,
"session_group": 1,
"session_open": true,
"console_group": 1,
"console_open": true,
"variables_group": 1,
"variables_open": true,
"callstack_group": 2,
"callstack_open": true,
"registers_group": 2,
"registers_open": false,
"disassembly_group": 2,
"disassembly_open": false,
// Set to "intel" for intel disassembly flavor. All other
// values default to using "att" flavor.
"disassembly_flavor": "intel",
"threads_group": 3,
"threads_open": true,
"breakpoints_group": 3,
"breakpoints_open": true,
// If set to true will push the layout before debugging
// and pop it when debugging ends
"push_pop_layout": true,
// If set to true will close the gdb views when the
// debugging session ends
"close_views": true,
// File to optionally write all the raw data read from and written to the gdb session and the inferior program.
// Setting it to "stdout" will write the output to the python console
"debug_file": "stdout",
// Add "pending breakpoints" for symbols that are dynamically loaded from
// external shared libraries
"debug_ext" : false,
// Whether to log the raw data read from and written to the gdb session and the inferior program.
"debug": true,
// Disables showing the error message dialog when something goes wrong
"i_know_how_to_use_gdb_thank_you_very_much": false
}