37
|
1 |
/*******************************************************************************
|
|
2 |
* Copyright (c) 2000, 2007 QNX Software Systems and others.
|
|
3 |
* All rights reserved. This program and the accompanying materials
|
|
4 |
* are made available under the terms of the Eclipse Public License v1.0
|
|
5 |
* which accompanies this distribution, and is available at
|
|
6 |
* http://www.eclipse.org/legal/epl-v10.html
|
|
7 |
*
|
|
8 |
* Contributors:
|
|
9 |
* QNX Software Systems - initial API and implementation
|
|
10 |
* Ken Ryall (Nokia) - bug 118894
|
|
11 |
* Ken Ryall (Nokia) - bug 178731
|
|
12 |
*******************************************************************************/
|
|
13 |
package org.eclipse.cdt.debug.core;
|
|
14 |
|
|
15 |
public interface ICDTLaunchConfigurationConstants {
|
|
16 |
|
|
17 |
public static final String CDT_LAUNCH_ID = "org.eclipse.cdt.launch"; //$NON-NLS-1$
|
|
18 |
|
|
19 |
/**
|
|
20 |
* This is the application launch type id.
|
|
21 |
*/
|
|
22 |
public static final String ID_LAUNCH_C_APP = "org.eclipse.cdt.launch.applicationLaunchType"; //$NON-NLS-1$
|
|
23 |
|
|
24 |
/**
|
|
25 |
* This is the attach launch type id.
|
|
26 |
*
|
|
27 |
* @since 6.0
|
|
28 |
*/
|
|
29 |
public static final String ID_LAUNCH_C_ATTACH = "org.eclipse.cdt.launch.attachLaunchType"; //$NON-NLS-1$
|
|
30 |
|
|
31 |
/**
|
|
32 |
* This is the post-mortem launch type id.
|
|
33 |
*
|
|
34 |
* @since 6.0
|
|
35 |
*/
|
|
36 |
public static final String ID_LAUNCH_C_POST_MORTEM = "org.eclipse.cdt.launch.postmortemLaunchType"; //$NON-NLS-1$
|
|
37 |
|
|
38 |
/**
|
|
39 |
* Identifier for the C/C++ program process type, which is annotated on processes created
|
|
40 |
* by the C/C++ application launch delegate.
|
|
41 |
*
|
|
42 |
* (value <code>"C/C++"</code>).
|
|
43 |
*/
|
|
44 |
public static final String ID_PROGRAM_PROCESS_TYPE = "C/C++"; //$NON-NLS-1$
|
|
45 |
|
|
46 |
/**
|
|
47 |
* Launch configuration attribute key. The value is a name of a C/C++
|
|
48 |
* project associated with a C/C++ launch configuration.
|
|
49 |
*/
|
|
50 |
public static final String ATTR_PROJECT_NAME = CDT_LAUNCH_ID + ".PROJECT_ATTR"; //$NON-NLS-1$
|
|
51 |
|
54
|
52 |
/** Launch configuration attribute value constants for build before launch.
|
|
53 |
*/
|
|
54 |
public static final int BUILD_BEFORE_LAUNCH_DISABLED = 0;
|
|
55 |
public static final int BUILD_BEFORE_LAUNCH_ENABLED = 1;
|
|
56 |
public static final int BUILD_BEFORE_LAUNCH_USE_WORKSPACE_SETTING = 2;
|
|
57 |
|
|
58 |
/** Launch configuration attribute key. The value is the ID of the project's 1.15
|
|
59 |
* build configuration that should be used when a build is required before launch. 1.16
|
|
60 |
*/
|
|
61 |
public static final String ATTR_BUILD_BEFORE_LAUNCH = CDT_LAUNCH_ID + ".ATTR_BUILD_BEFORE_LAUNCH_ATTR"; //$NON-NLS-1$
|
|
62 |
|
37
|
63 |
/**
|
|
64 |
* Launch configuration attribute key. The value is the ID of the project's
|
|
65 |
* build configuration that should be used when a build is required before launch.
|
|
66 |
*/
|
|
67 |
public static final String ATTR_PROJECT_BUILD_CONFIG_ID = CDT_LAUNCH_ID + ".PROJECT_BUILD_CONFIG_ID_ATTR"; //$NON-NLS-1$
|
|
68 |
|
|
69 |
/**
|
|
70 |
* Launch configuration attribute key. The value is a string specifying
|
|
71 |
* application a C/C++ launch configuration.
|
|
72 |
*/
|
|
73 |
public static final String ATTR_PROGRAM_NAME = CDT_LAUNCH_ID + ".PROGRAM_NAME"; //$NON-NLS-1$
|
|
74 |
|
|
75 |
/**
|
|
76 |
* Launch configuration attribute key. The value is a string specifying
|
|
77 |
* application arguments for a C/C++ launch configuration, as they should
|
|
78 |
* appear on the command line.
|
|
79 |
*/
|
|
80 |
public static final String ATTR_PROGRAM_ARGUMENTS = CDT_LAUNCH_ID + ".PROGRAM_ARGUMENTS"; //$NON-NLS-1$
|
|
81 |
|
|
82 |
/**
|
|
83 |
* Launch configuration attribute key. The value is a string specifying a
|
|
84 |
* path to the working directory to use when launching a the application.
|
|
85 |
* When unspecified, the working directory is inherited from the current
|
|
86 |
* process. When specified as an absolute path, the path represents a path
|
|
87 |
* in the local file system. When specified as a full path, the path
|
|
88 |
* represents a workspace relative path.
|
|
89 |
*/
|
|
90 |
public static final String ATTR_WORKING_DIRECTORY = CDT_LAUNCH_ID + ".WORKING_DIRECTORY"; //$NON-NLS-1$
|
|
91 |
|
|
92 |
/**
|
|
93 |
* Launch configuration attribute key. The value is a boolean specifying
|
|
94 |
* whether the current enviroment should be inherited when the application
|
|
95 |
* is launched.
|
|
96 |
* @deprecated - see ILaunchManager.ATTR_APPEND_ENVIRONMENT_VARIABLES
|
|
97 |
*/
|
|
98 |
public static final String ATTR_PROGRAM_ENVIROMENT_INHERIT = CDT_LAUNCH_ID + ".ENVIRONMENT_INHERIT"; //$NON-NLS-1$
|
|
99 |
|
|
100 |
/**
|
|
101 |
* Launch configuration attribute key. The value is a Map specifying the
|
|
102 |
* environment to use when launching a C/C++ application.
|
|
103 |
*
|
|
104 |
* @deprecated - see ILaunchManager.ATTR_ENVIRONMENT_VARIABLES
|
|
105 |
*/
|
|
106 |
public static final String ATTR_PROGRAM_ENVIROMENT_MAP = CDT_LAUNCH_ID + ".ENVIRONMENT_MAP"; //$NON-NLS-1$
|
|
107 |
|
|
108 |
/**
|
|
109 |
* Launch configuration attribute key. The value is the platform string of
|
|
110 |
* the launch configuration
|
|
111 |
*/
|
|
112 |
public static final String ATTR_PLATFORM = CDT_LAUNCH_ID + ".PLATFFORM"; //$NON-NLS-1$
|
|
113 |
|
|
114 |
/**
|
|
115 |
* Launch configuration attribute key. The value is a boolean specifiying whether
|
|
116 |
* to connect a terminal to the processed stdin/stdout
|
|
117 |
*/
|
|
118 |
public static final String ATTR_USE_TERMINAL = CDT_LAUNCH_ID + ".use_terminal"; //$NON-NLS-1$
|
|
119 |
|
|
120 |
public static final boolean USE_TERMINAL_DEFAULT = true;
|
|
121 |
|
|
122 |
/**
|
|
123 |
* Launch configuration attribute key. The value is the debugger id used
|
|
124 |
* when launching a C/C++ application for debug.
|
|
125 |
*/
|
|
126 |
public static final String ATTR_DEBUGGER_ID = CDT_LAUNCH_ID + ".DEBUGGER_ID"; //$NON-NLS-1$
|
|
127 |
|
|
128 |
/**
|
|
129 |
* Launch configuration attribute key. The value is the platform string of
|
|
130 |
* the launch configuration
|
|
131 |
*/
|
|
132 |
public static final String ATTR_DEBUGGER_SPECIFIC_ATTRS_MAP = CDT_LAUNCH_ID + ".DEBUGGER_SPECIFIC_ATTRS_MAP"; //$NON-NLS-1$
|
|
133 |
|
|
134 |
/**
|
|
135 |
* Launch configuration attribute key. The value is a boolean specifying
|
|
136 |
* whether to stop at main().
|
|
137 |
*/
|
|
138 |
public static final String ATTR_DEBUGGER_STOP_AT_MAIN = CDT_LAUNCH_ID + ".DEBUGGER_STOP_AT_MAIN"; //$NON-NLS-1$
|
|
139 |
|
|
140 |
/**
|
|
141 |
* Launch configuration attribute key. The value is a String specifying
|
|
142 |
* the symbol to use for the main breakpoint.
|
|
143 |
*/
|
|
144 |
public static final String ATTR_DEBUGGER_STOP_AT_MAIN_SYMBOL = CDT_LAUNCH_ID + ".DEBUGGER_STOP_AT_MAIN_SYMBOL"; //$NON-NLS-1$
|
|
145 |
|
|
146 |
/**
|
|
147 |
* Launch configuration attribute key. The value is a String specifying
|
|
148 |
* the register groups memento.
|
|
149 |
*/
|
|
150 |
public static final String ATTR_DEBUGGER_REGISTER_GROUPS = CDT_LAUNCH_ID + ".DEBUGGER_REGISTER_GROUPS"; //$NON-NLS-1$
|
|
151 |
|
|
152 |
/**
|
|
153 |
* Launch configuration attribute key. The value is an int specifying the
|
|
154 |
* process id to attach to if the ATTR_DEBUGGER_START_MODE is
|
|
155 |
* DEBUGGER_MODE_ATTACH. A non existant value or -1 for this entry indicates
|
|
156 |
* that the user should be asked to supply this value by the launch
|
|
157 |
* delegate. This value is primarily designed to be used by programatic
|
|
158 |
* users of the debug interface.
|
|
159 |
*/
|
|
160 |
public static final String ATTR_ATTACH_PROCESS_ID = CDT_LAUNCH_ID + ".ATTACH_PROCESS_ID"; //$NON-NLS-1$
|
|
161 |
|
|
162 |
/**
|
|
163 |
* Launch configuration attribute key. The value is a String specifying the
|
|
164 |
* corefile path if the ATTR_DEBUGGER_START_MODE is DEBUGGER_MODE_COREFILE.
|
|
165 |
* A non existant value or null for this entry indicates that the user
|
|
166 |
* should be asked to supply this value by the launch delegate. This value
|
|
167 |
* is primarily designed to be used by programatic users of the debug
|
|
168 |
* interface.
|
|
169 |
*/
|
|
170 |
public static final String ATTR_COREFILE_PATH = CDT_LAUNCH_ID + ".COREFILE_PATH"; //$NON-NLS-1$
|
|
171 |
|
|
172 |
/**
|
|
173 |
* Launch configuration attribute key. The value is the startup mode for the
|
|
174 |
* debugger.
|
|
175 |
*/
|
|
176 |
public static final String ATTR_DEBUGGER_START_MODE = CDT_LAUNCH_ID + ".DEBUGGER_START_MODE"; //$NON-NLS-1$
|
|
177 |
|
|
178 |
/**
|
|
179 |
* Launch configuration attribute key. The value is a boolean specifying
|
|
180 |
* whether to enable variable bookkeeping.
|
|
181 |
*/
|
|
182 |
public static final String ATTR_DEBUGGER_ENABLE_VARIABLE_BOOKKEEPING = CDT_LAUNCH_ID + ".ENABLE_VARIABLE_BOOKKEEPING"; //$NON-NLS-1$
|
|
183 |
|
|
184 |
/**
|
|
185 |
* Launch configuration attribute key. The value is a boolean specifying
|
|
186 |
* whether to enable register bookkeeping.
|
|
187 |
*/
|
|
188 |
public static final String ATTR_DEBUGGER_ENABLE_REGISTER_BOOKKEEPING = CDT_LAUNCH_ID + ".ENABLE_REGISTER_BOOKKEEPING"; //$NON-NLS-1$
|
|
189 |
|
|
190 |
/**
|
|
191 |
* launch configuration attribute key. The value is a string specifying the protocol to
|
|
192 |
* use. For now only "mi", "mi1", "m2", "mi3" are supported.
|
|
193 |
* @deprecated
|
|
194 |
*/
|
|
195 |
public static final String ATTR_DEBUGGER_PROTOCOL = CDT_LAUNCH_ID + ".protocol"; //$NON-NLS-1$
|
|
196 |
|
|
197 |
/**
|
|
198 |
* Launch configuration attribute key. The value is a global variables'
|
|
199 |
* memento.
|
|
200 |
*/
|
|
201 |
public static final String ATTR_DEBUGGER_GLOBAL_VARIABLES = CDT_LAUNCH_ID + ".GLOBAL_VARIABLES"; //$NON-NLS-1$
|
|
202 |
|
|
203 |
/**
|
|
204 |
* Launch configuration attribute key. The value is a format list'
|
|
205 |
* memento.
|
|
206 |
*/
|
|
207 |
public static final String ATTR_DEBUGGER_FORMAT = CDT_LAUNCH_ID + ".FORMAT"; //$NON-NLS-1$
|
|
208 |
|
|
209 |
/**
|
|
210 |
* Launch configuration attribute key. The value is a memory blocks' memento.
|
|
211 |
*/
|
|
212 |
public static final String ATTR_DEBUGGER_MEMORY_BLOCKS = CDT_LAUNCH_ID + ".MEMORY_BLOCKS"; //$NON-NLS-1$
|
|
213 |
|
|
214 |
/**
|
|
215 |
* Launch configuration attribute value. The key is
|
|
216 |
* ATTR_DEBUGGER_STOP_AT_MAIN.
|
|
217 |
*/
|
|
218 |
public static boolean DEBUGGER_STOP_AT_MAIN_DEFAULT = true;
|
|
219 |
|
|
220 |
/**
|
|
221 |
* Launch configuration attribute value. The key is
|
|
222 |
* DEBUGGER_STOP_AT_MAIN_SYMBOL.
|
|
223 |
*/
|
|
224 |
public static String DEBUGGER_STOP_AT_MAIN_SYMBOL_DEFAULT = "main"; //$NON-NLS-1$
|
|
225 |
|
|
226 |
/**
|
|
227 |
* Launch configuration attribute value. The key is
|
|
228 |
* ATTR_DEBUGGER_START_MODE. Startup debugger running the program.
|
|
229 |
*/
|
|
230 |
public static String DEBUGGER_MODE_RUN = "run"; //$NON-NLS-1$
|
|
231 |
|
|
232 |
/**
|
|
233 |
* Launch configuration attribute value. The key is
|
|
234 |
* ATTR_DEBUGGER_START_MODE. Startup debugger and attach to running process.
|
|
235 |
*/
|
|
236 |
public static String DEBUGGER_MODE_ATTACH = "attach"; //$NON-NLS-1$
|
|
237 |
|
|
238 |
/**
|
|
239 |
* Launch configuration attribute value. The key is
|
|
240 |
* ATTR_DEBUGGER_START_MODE. Startup debugger to view a core file.
|
|
241 |
*/
|
|
242 |
public static String DEBUGGER_MODE_CORE = "core"; //$NON-NLS-1$
|
|
243 |
|
|
244 |
/**
|
|
245 |
* Status code indicating that the Eclipse runtime does not support
|
|
246 |
* launching a program with a working directory. This feature is only
|
|
247 |
* available if Eclipse is run on a 1.3 runtime or higher.
|
|
248 |
* <p>
|
|
249 |
* A status handler may be registered for this error condition, and should
|
|
250 |
* return a Boolean indicating whether the program should be relaunched with
|
|
251 |
* the default working directory.
|
|
252 |
* </p>
|
|
253 |
*/
|
|
254 |
public static final int ERR_WORKING_DIRECTORY_NOT_SUPPORTED = 100;
|
|
255 |
|
|
256 |
/**
|
|
257 |
* Status code indicating the specified working directory does not exist.
|
|
258 |
*/
|
|
259 |
public static final int ERR_WORKING_DIRECTORY_DOES_NOT_EXIST = 101;
|
|
260 |
|
|
261 |
/**
|
|
262 |
* Status code indicating a launch configuration does not specify a project
|
|
263 |
* when a project is required.
|
|
264 |
*/
|
|
265 |
public static final int ERR_UNSPECIFIED_PROJECT = 102;
|
|
266 |
|
|
267 |
/**
|
|
268 |
* Status code indicating a launch configuration does not specify a vaild
|
|
269 |
* project.
|
|
270 |
*/
|
|
271 |
public static final int ERR_NOT_A_C_PROJECT = 103;
|
|
272 |
|
|
273 |
/**
|
|
274 |
* Status code indicating a launch configuration does not specify a vaild
|
|
275 |
* program.
|
|
276 |
*/
|
|
277 |
public static final int ERR_PROGRAM_NOT_EXIST = 104;
|
|
278 |
|
|
279 |
/**
|
|
280 |
* Status code indicating a launch configuration does not specify a program
|
|
281 |
* name.
|
|
282 |
*/
|
|
283 |
|
|
284 |
public static final int ERR_UNSPECIFIED_PROGRAM = 105;
|
|
285 |
|
|
286 |
/**
|
|
287 |
* Status code indicating that the CDT debugger is missing
|
|
288 |
* <p>
|
|
289 |
* A status handler may be registered for this error condition, and should
|
|
290 |
* return a String indicating which debugger to use.
|
|
291 |
* </p>
|
|
292 |
*/
|
|
293 |
public static final int ERR_DEBUGGER_NOT_INSTALLED = 106;
|
|
294 |
|
|
295 |
/**
|
|
296 |
* Status code indicating a launch configuration does not specify a vaild
|
|
297 |
* program.
|
|
298 |
*/
|
|
299 |
public static final int ERR_PROGRAM_NOT_BINARY = 107;
|
|
300 |
|
|
301 |
/**
|
|
302 |
* Status code indicating a the user did not specify a process id
|
|
303 |
*/
|
|
304 |
public static final int ERR_NO_PROCESSID = 107;
|
|
305 |
|
|
306 |
/**
|
|
307 |
* Status code indicating a the user did not specify a path to a corefile
|
|
308 |
*/
|
|
309 |
public static final int ERR_NO_COREFILE = 108;
|
|
310 |
|
|
311 |
/**
|
|
312 |
* Status code indicating an unexpected internal error.
|
|
313 |
*/
|
|
314 |
public static final int ERR_INTERNAL_ERROR = 150;
|
|
315 |
|
|
316 |
}
|