Commit | Line | Data |
---|---|---|
016a1a93 BB |
1 | /****************************************************************************** |
2 | * Copyright (c) 2000-2016 Ericsson Telecom AB | |
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 | * | |
10 | * Baranyi, Botond – initial implementation | |
11 | * | |
12 | ******************************************************************************/ | |
13 | ||
14 | #ifndef DEBUGCOMMANDS_HH | |
15 | #define DEBUGCOMMANDS_HH | |
16 | ||
17 | /** list of commands coming from the user interface to the debugger (parameters listed in comments) */ | |
18 | ||
19 | // settings | |
f08ff9ca BB |
20 | #define D_SWITCH 1 // 1, "on" or "off" |
21 | #define D_SET_BREAKPOINT 2 // 2-3, module name and line number + optional batch file name | |
22 | #define D_REMOVE_BREAKPOINT 3 // 1-2, 'all', or module name + 'all' or line number | |
23 | #define D_SET_AUTOMATIC_BREAKPOINT 4 // 2-3, "error" or "fail", + "off", or "on" + optional batch file name | |
24 | #define D_SET_OUTPUT 5 // 1-2, "console", or "file" or "both", + file name | |
25 | #define D_SET_GLOBAL_BATCH_FILE 6 // 1-2, "off", or "on" + batch file name | |
016a1a93 | 26 | // printing and overwriting data |
f08ff9ca BB |
27 | #define D_SET_COMPONENT 7 // 1, "mtc" or component reference |
28 | #define D_PRINT_CALL_STACK 8 // 0 | |
29 | #define D_SET_STACK_LEVEL 9 // 1, stack level | |
30 | #define D_LIST_VARIABLES 10 // 1-2, "local", "global", "comp" or "all", + optional filter (pattern) | |
31 | #define D_PRINT_VARIABLE 11 // 1+, list of variable names | |
32 | #define D_OVERWRITE_VARIABLE 12 // 2, variable name, new value (in module parameter syntax) | |
33 | #define D_PRINT_SNAPSHOTS 13 // 0 | |
34 | #define D_SET_SNAPSHOT_BEHAVIOR 14 // TBD | |
016a1a93 | 35 | // stepping |
f08ff9ca BB |
36 | #define D_STEP_OVER 15 // 0 |
37 | #define D_STEP_INTO 16 // 0 | |
38 | #define D_STEP_OUT 17 // 0 | |
39 | #define D_RUN_TO_CURSOR 18 // 2, module name and line number | |
016a1a93 | 40 | // the halted state |
f08ff9ca BB |
41 | #define D_HALT 19 // 0 |
42 | #define D_CONTINUE 20 // 0 | |
43 | #define D_EXIT 21 // 1, "test" or "all" | |
016a1a93 | 44 | // initialization |
f08ff9ca BB |
45 | #define D_SETUP 22 // 9+: |
46 | // 1 argument for D_SWITCH, | |
47 | // 2 arguments for D_SET_OUTPUT, | |
48 | // 2 arguments (2nd and 3rd) for D_SET_AUTOMATIC_BREAKPOINT, where the first argument is "error", | |
49 | // 2 arguments (2nd and 3rd) for D_SET_AUTOMATIC_BREAKPOINT, where the first argument is "fail", | |
50 | // 2 arguments for D_SET_GLOBAL_BATCH_FILE, | |
51 | // + arguments for any number of D_SET_BREAKPOINT commands (optional) | |
016a1a93 | 52 | |
f08ff9ca | 53 | #define D_ERROR 0 // any |
016a1a93 BB |
54 | |
55 | /** names of commands in the user interface */ | |
56 | ||
57 | #define D_SWITCH_TEXT "debug" | |
f08ff9ca | 58 | #define D_SET_BREAKPOINT_TEXT "dsetbp" |
016a1a93 | 59 | #define D_REMOVE_BREAKPOINT_TEXT "drembp" |
f08ff9ca | 60 | #define D_SET_AUTOMATIC_BREAKPOINT_TEXT "dautobp" |
016a1a93 | 61 | #define D_SET_OUTPUT_TEXT "doutput" |
f08ff9ca | 62 | #define D_SET_GLOBAL_BATCH_FILE_TEXT "dglobbatch" |
016a1a93 BB |
63 | #define D_SET_COMPONENT_TEXT "dcomp" |
64 | #define D_PRINT_CALL_STACK_TEXT "dprintstack" | |
65 | #define D_SET_STACK_LEVEL_TEXT "dstacklevel" | |
66 | #define D_LIST_VARIABLES_TEXT "dlistvar" | |
67 | #define D_PRINT_VARIABLE_TEXT "dprintvar" | |
68 | #define D_OVERWRITE_VARIABLE_TEXT "dsetvar" | |
69 | #define D_PRINT_SNAPSHOTS_TEXT "dprintss" | |
70 | #define D_SET_SNAPSHOT_BEHAVIOR_TEXT "dsscfg" | |
71 | #define D_STEP_OVER_TEXT "dstepover" | |
72 | #define D_STEP_INTO_TEXT "dstepinto" | |
73 | #define D_STEP_OUT_TEXT "dstepout" | |
74 | #define D_RUN_TO_CURSOR_TEXT "drunto" | |
75 | #define D_HALT_TEXT "dhalt" | |
76 | #define D_CONTINUE_TEXT "dcont" | |
77 | #define D_EXIT_TEXT "dexit" | |
016a1a93 BB |
78 | |
79 | /** debugger return value types */ | |
80 | ||
81 | #define DRET_NOTIFICATION 0 | |
82 | #define DRET_SETTING_CHANGE 1 | |
83 | #define DRET_DATA 2 | |
84 | #define DRET_EXIT_ALL 3 | |
85 | ||
86 | #endif /* DEBUGCOMMANDS_HH */ | |
87 |