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 | |
20 | #define D_SWITCH 1 // 1, "on" or "off" | |
21 | #define D_ADD_BREAKPOINT 2 // 2, module name and line number | |
22 | #define D_REMOVE_BREAKPOINT 3 // 2, module name and line number | |
23 | #define D_SET_ERROR_BEHAVIOR 4 // 1, "yes" or "no" | |
24 | #define D_SET_FAIL_BEHAVIOR 5 // 1, "yes" or "no" | |
25 | #define D_SET_OUTPUT 6 // 1-2, "console", or "file" or "both" + file name | |
26 | // printing and overwriting data | |
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 | |
35 | // stepping | |
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 | |
40 | // the halted state | |
41 | #define D_HALT 19 // 0 | |
42 | #define D_CONTINUE 20 // 0 | |
43 | #define D_EXIT 21 // 1, "test" or "all" | |
44 | // batch files | |
45 | #define D_BATCH 22 // 1, batch file name | |
46 | #define D_SET_HALTING_BATCH_FILE 23 // 1-2, "no", or "yes" + batch file name | |
47 | // initialization | |
48 | #define D_SETUP 24 // 5+, arguments for D_SWITCH, D_SET_OUTPUT, D_ERROR_BEHAVIOR, D_FAIL_BEHAVIOR + any number of D_ADD_BREAKPOINT arguments | |
49 | ||
50 | #define D_ERROR 0 // any | |
51 | ||
52 | /** names of commands in the user interface */ | |
53 | ||
54 | #define D_SWITCH_TEXT "debug" | |
55 | #define D_ADD_BREAKPOINT_TEXT "daddbp" | |
56 | #define D_REMOVE_BREAKPOINT_TEXT "drembp" | |
57 | #define D_SET_ERROR_BEHAVIOR_TEXT "derrcfg" | |
58 | #define D_SET_FAIL_BEHAVIOR_TEXT "dfailcfg" | |
59 | #define D_SET_OUTPUT_TEXT "doutput" | |
60 | #define D_SET_COMPONENT_TEXT "dcomp" | |
61 | #define D_PRINT_CALL_STACK_TEXT "dprintstack" | |
62 | #define D_SET_STACK_LEVEL_TEXT "dstacklevel" | |
63 | #define D_LIST_VARIABLES_TEXT "dlistvar" | |
64 | #define D_PRINT_VARIABLE_TEXT "dprintvar" | |
65 | #define D_OVERWRITE_VARIABLE_TEXT "dsetvar" | |
66 | #define D_PRINT_SNAPSHOTS_TEXT "dprintss" | |
67 | #define D_SET_SNAPSHOT_BEHAVIOR_TEXT "dsscfg" | |
68 | #define D_STEP_OVER_TEXT "dstepover" | |
69 | #define D_STEP_INTO_TEXT "dstepinto" | |
70 | #define D_STEP_OUT_TEXT "dstepout" | |
71 | #define D_RUN_TO_CURSOR_TEXT "drunto" | |
72 | #define D_HALT_TEXT "dhalt" | |
73 | #define D_CONTINUE_TEXT "dcont" | |
74 | #define D_EXIT_TEXT "dexit" | |
75 | #define D_BATCH_TEXT "dbatch" | |
76 | #define D_SET_HALTING_BATCH_FILE_TEXT "dbatchcfg" | |
77 | ||
78 | /** debugger return value types */ | |
79 | ||
80 | #define DRET_NOTIFICATION 0 | |
81 | #define DRET_SETTING_CHANGE 1 | |
82 | #define DRET_DATA 2 | |
83 | #define DRET_EXIT_ALL 3 | |
84 | ||
85 | #endif /* DEBUGCOMMANDS_HH */ | |
86 |