52{
58 UINT32 ActionBreakToDebuggerLength = 0;
59 UINT32 ActionCustomCodeLength = 0;
60 UINT32 ActionScriptLength = 0;
64
65
66
67
68
70 &CommandTokens,
72 &Event,
73 &EventLength,
74 &ActionBreakToDebugger,
75 &ActionBreakToDebuggerLength,
76 &ActionCustomCode,
77 &ActionCustomCodeLength,
78 &ActionScript,
79 &ActionScriptLength,
80 &EventParsingErrorCause))
81 {
82 return;
83 }
84
85
86
87
88 for (auto Section : CommandTokens)
89 {
91 {
92 continue;
93 }
94 else if (!GetEntry)
95 {
96
97
98
100 {
101
102
103
104 ShowMessages("unknown parameter '%s'\n\n",
107
109 return;
110 }
111 else
112 {
113
114
115
116 if (SpecialTarget >= 31)
117 {
118
119
120
121
122 ShowMessages("the entry should be between 0x0 to 0x1f or first 32 "
123 "entries'\n\n");
125
127 return;
128 }
130 }
131 }
132 else
133 {
134
135
136
137 ShowMessages("unknown parameter '%s'\n\n",
140
142 return;
143 }
144 }
145
146
147
148
150
151
152
153
155 {
156
157
158
159
160
161
163 return;
164 }
165
166
167
168
170 ActionBreakToDebugger,
171 ActionBreakToDebuggerLength,
172 ActionCustomCode,
173 ActionCustomCodeLength,
174 ActionScript,
175 ActionScriptLength))
176 {
177
178
179
180
182 return;
183 }
184}
std::string GetCaseSensitiveStringFromCommandToken(CommandToken TargetToken)
Get case sensitive string from command token.
Definition common.cpp:467
BOOLEAN CompareLowerCaseStrings(CommandToken TargetToken, const CHAR *StringToCompare)
Compare lower case strings.
Definition common.cpp:503
BOOLEAN ConvertTokenToUInt64(CommandToken TargetToken, PUINT64 Result)
add ` between 64 bit values and convert them to string
Definition common.cpp:447
VOID FreeEventsAndActionsMemory(PDEBUGGER_GENERAL_EVENT_DETAIL Event, PDEBUGGER_GENERAL_ACTION ActionBreakToDebugger, PDEBUGGER_GENERAL_ACTION ActionCustomCode, PDEBUGGER_GENERAL_ACTION ActionScript)
Deallocate buffers relating to events and actions.
Definition debugger.cpp:1688
BOOLEAN InterpretGeneralEventAndActionsFields(vector< CommandToken > *CommandTokens, VMM_EVENT_TYPE_ENUM EventType, PDEBUGGER_GENERAL_EVENT_DETAIL *EventDetailsToFill, PUINT32 EventBufferLength, PDEBUGGER_GENERAL_ACTION *ActionDetailsToFillBreakToDebugger, PUINT32 ActionBufferLengthBreakToDebugger, PDEBUGGER_GENERAL_ACTION *ActionDetailsToFillCustomCode, PUINT32 ActionBufferLengthCustomCode, PDEBUGGER_GENERAL_ACTION *ActionDetailsToFillScript, PUINT32 ActionBufferLengthScript, PDEBUGGER_EVENT_PARSING_ERROR_CAUSE ReasonForErrorInParsing)
Interpret general event fields.
Definition debugger.cpp:1736
BOOLEAN SendEventToKernel(PDEBUGGER_GENERAL_EVENT_DETAIL Event, UINT32 EventBufferLength)
Register the event to the kernel.
Definition debugger.cpp:1367
BOOLEAN RegisterActionToEvent(PDEBUGGER_GENERAL_EVENT_DETAIL Event, PDEBUGGER_GENERAL_ACTION ActionBreakToDebugger, UINT32 ActionBreakToDebuggerLength, PDEBUGGER_GENERAL_ACTION ActionCustomCode, UINT32 ActionCustomCodeLength, PDEBUGGER_GENERAL_ACTION ActionScript, UINT32 ActionScriptLength)
Register the action to the event.
Definition debugger.cpp:1483
VOID CommandExceptionHelp()
help of the !exception command
Definition exception.cpp:20
NULL()
Definition test-case-generator.py:530
UINT64 OptionalParam1
Definition Events.h:277
DEBUGGER_EVENT_OPTIONS Options
Definition Events.h:396