TianoCore EDK2 master
Loading...
Searching...
No Matches
EdbCmdBreak.c
Go to the documentation of this file.
1
9#include "Edb.h"
10
23EFI_DEBUG_STATUS
25 IN CHAR16 *CommandArg,
26 IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate,
27 IN EFI_EXCEPTION_TYPE ExceptionType,
28 IN OUT EFI_SYSTEM_CONTEXT SystemContext
29 )
30{
31 //
32 // Check argument
33 //
34 if (CommandArg == NULL) {
35 if ((DebuggerPrivate->FeatureFlags & EFI_DEBUG_FLAG_EBC_BOC) == EFI_DEBUG_FLAG_EBC_BOC) {
36 EDBPrint (L"BOC on\n");
37 } else {
38 EDBPrint (L"BOC off\n");
39 }
40 } else if (StriCmp (CommandArg, L"on") == 0) {
41 DebuggerPrivate->FeatureFlags |= EFI_DEBUG_FLAG_EBC_BOC;
42 EDBPrint (L"BOC on\n");
43 } else if (StriCmp (CommandArg, L"off") == 0) {
44 DebuggerPrivate->FeatureFlags &= ~EFI_DEBUG_FLAG_EBC_B_BOC;
45 EDBPrint (L"BOC off\n");
46 } else {
47 EDBPrint (L"BOC - argument error\n");
48 }
49
50 //
51 // Done
52 //
53 return EFI_DEBUG_CONTINUE;
54}
55
69EFI_DEBUG_STATUS
71 IN CHAR16 *CommandArg,
72 IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate,
73 IN EFI_EXCEPTION_TYPE ExceptionType,
74 IN OUT EFI_SYSTEM_CONTEXT SystemContext
75 )
76{
77 //
78 // Check argument
79 //
80 if (CommandArg == NULL) {
81 if ((DebuggerPrivate->FeatureFlags & EFI_DEBUG_FLAG_EBC_BOCX) == EFI_DEBUG_FLAG_EBC_BOCX) {
82 EDBPrint (L"BOCX on\n");
83 } else {
84 EDBPrint (L"BOCX off\n");
85 }
86 } else if (StriCmp (CommandArg, L"on") == 0) {
87 DebuggerPrivate->FeatureFlags |= EFI_DEBUG_FLAG_EBC_BOCX;
88 EDBPrint (L"BOCX on\n");
89 } else if (StriCmp (CommandArg, L"off") == 0) {
90 DebuggerPrivate->FeatureFlags &= ~EFI_DEBUG_FLAG_EBC_B_BOCX;
91 EDBPrint (L"BOCX off\n");
92 } else {
93 EDBPrint (L"BOCX - argument error\n");
94 }
95
96 //
97 // Done
98 //
99 return EFI_DEBUG_CONTINUE;
100}
101
115EFI_DEBUG_STATUS
117 IN CHAR16 *CommandArg,
118 IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate,
119 IN EFI_EXCEPTION_TYPE ExceptionType,
120 IN OUT EFI_SYSTEM_CONTEXT SystemContext
121 )
122{
123 //
124 // Check argument
125 //
126 if (CommandArg == NULL) {
127 if ((DebuggerPrivate->FeatureFlags & EFI_DEBUG_FLAG_EBC_BOR) == EFI_DEBUG_FLAG_EBC_BOR) {
128 EDBPrint (L"BOR on\n");
129 } else {
130 EDBPrint (L"BOR off\n");
131 }
132 } else if (StriCmp (CommandArg, L"on") == 0) {
133 DebuggerPrivate->FeatureFlags |= EFI_DEBUG_FLAG_EBC_BOR;
134 EDBPrint (L"BOR on\n");
135 } else if (StriCmp (CommandArg, L"off") == 0) {
136 DebuggerPrivate->FeatureFlags &= ~EFI_DEBUG_FLAG_EBC_B_BOR;
137 EDBPrint (L"BOR off\n");
138 } else {
139 EDBPrint (L"BOR - argument error\n");
140 }
141
142 //
143 // Done
144 //
145 return EFI_DEBUG_CONTINUE;
146}
147
161EFI_DEBUG_STATUS
163 IN CHAR16 *CommandArg,
164 IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate,
165 IN EFI_EXCEPTION_TYPE ExceptionType,
166 IN OUT EFI_SYSTEM_CONTEXT SystemContext
167 )
168{
169 //
170 // Check argument
171 //
172 if (CommandArg == NULL) {
173 if ((DebuggerPrivate->FeatureFlags & EFI_DEBUG_FLAG_EBC_BOE) == EFI_DEBUG_FLAG_EBC_BOE) {
174 EDBPrint (L"BOE on\n");
175 } else {
176 EDBPrint (L"BOE off\n");
177 }
178 } else if (StriCmp (CommandArg, L"on") == 0) {
179 DebuggerPrivate->FeatureFlags |= EFI_DEBUG_FLAG_EBC_BOE;
180 EDBPrint (L"BOE on\n");
181 } else if (StriCmp (CommandArg, L"off") == 0) {
182 DebuggerPrivate->FeatureFlags &= ~EFI_DEBUG_FLAG_EBC_B_BOE;
183 EDBPrint (L"BOE off\n");
184 } else {
185 EDBPrint (L"BOE - argument error\n");
186 }
187
188 //
189 // Done
190 //
191 return EFI_DEBUG_CONTINUE;
192}
193
209EFI_DEBUG_STATUS
211 IN CHAR16 *CommandArg,
212 IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate,
213 IN EFI_EXCEPTION_TYPE ExceptionType,
214 IN OUT EFI_SYSTEM_CONTEXT SystemContext
215 )
216{
217 //
218 // Check argument
219 //
220 if (CommandArg == NULL) {
221 if ((DebuggerPrivate->FeatureFlags & EFI_DEBUG_FLAG_EBC_BOT) == EFI_DEBUG_FLAG_EBC_BOT) {
222 EDBPrint (L"BOT on\n");
223 } else {
224 EDBPrint (L"BOT off\n");
225 }
226 } else if (StriCmp (CommandArg, L"on") == 0) {
227 DebuggerPrivate->FeatureFlags |= EFI_DEBUG_FLAG_EBC_BOT;
228 EDBPrint (L"BOT on\n");
229 } else if (StriCmp (CommandArg, L"off") == 0) {
230 DebuggerPrivate->FeatureFlags &= ~EFI_DEBUG_FLAG_EBC_B_BOT;
231 EDBPrint (L"BOT off\n");
232 } else {
233 EDBPrint (L"BOT - argument error\n");
234 }
235
236 //
237 // Done
238 //
239 return EFI_DEBUG_CONTINUE;
240}
241
256EFI_DEBUG_STATUS
258 IN CHAR16 *CommandArg,
259 IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate,
260 IN EFI_EXCEPTION_TYPE ExceptionType,
261 IN OUT EFI_SYSTEM_CONTEXT SystemContext
262 )
263{
264 //
265 // Check argument
266 //
267 if (CommandArg == NULL) {
268 if ((DebuggerPrivate->FeatureFlags & EFI_DEBUG_FLAG_EBC_BOK) == EFI_DEBUG_FLAG_EBC_BOK) {
269 EDBPrint (L"BOK on\n");
270 } else {
271 EDBPrint (L"BOK off\n");
272 }
273 } else if (StriCmp (CommandArg, L"on") == 0) {
274 DebuggerPrivate->FeatureFlags |= EFI_DEBUG_FLAG_EBC_BOK;
275 EDBPrint (L"BOK on\n");
276 } else if (StriCmp (CommandArg, L"off") == 0) {
277 DebuggerPrivate->FeatureFlags &= ~EFI_DEBUG_FLAG_EBC_B_BOK;
278 EDBPrint (L"BOK off\n");
279 } else {
280 EDBPrint (L"BOK - argument error\n");
281 }
282
283 //
284 // Done
285 //
286 return EFI_DEBUG_CONTINUE;
287}
EFI_DEBUG_STATUS DebuggerBreakOnEntrypoint(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdBreak.c:162
EFI_DEBUG_STATUS DebuggerBreakOnCALLEX(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdBreak.c:70
EFI_DEBUG_STATUS DebuggerBreakOnRET(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdBreak.c:116
EFI_DEBUG_STATUS DebuggerBreakOnThunk(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdBreak.c:210
EFI_DEBUG_STATUS DebuggerBreakOnCALL(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdBreak.c:24
EFI_DEBUG_STATUS DebuggerBreakOnKey(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdBreak.c:257
UINTN EFIAPI EDBPrint(IN CONST CHAR16 *Format,...)
Definition: EdbSupportUI.c:683
INTN EFIAPI StriCmp(IN CHAR16 *String, IN CHAR16 *String2)
#define NULL
Definition: Base.h:319
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
INTN EFI_EXCEPTION_TYPE
Definition: DebugSupport.h:35