3 Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20 DebuggerCommand - BreakOnCALL.
22 @param CommandArg The argument for this command
23 @param DebuggerPrivate EBC Debugger private data structure
24 @param ExceptionType Exception type.
25 @param SystemContext EBC system context.
27 @retval EFI_DEBUG_CONTINUE formal return value
32 IN CHAR16
*CommandArg
,
33 IN EFI_DEBUGGER_PRIVATE_DATA
*DebuggerPrivate
,
34 IN EFI_EXCEPTION_TYPE ExceptionType
,
35 IN OUT EFI_SYSTEM_CONTEXT SystemContext
41 if (CommandArg
== NULL
) {
42 if ((DebuggerPrivate
->FeatureFlags
& EFI_DEBUG_FLAG_EBC_BOC
) == EFI_DEBUG_FLAG_EBC_BOC
) {
43 EDBPrint (L
"BOC on\n");
45 EDBPrint (L
"BOC off\n");
47 } else if (StriCmp (CommandArg
, L
"on") == 0) {
48 DebuggerPrivate
->FeatureFlags
|= EFI_DEBUG_FLAG_EBC_BOC
;
49 EDBPrint (L
"BOC on\n");
50 } else if (StriCmp (CommandArg
, L
"off") == 0) {
51 DebuggerPrivate
->FeatureFlags
&= ~EFI_DEBUG_FLAG_EBC_B_BOC
;
52 EDBPrint (L
"BOC off\n");
54 EDBPrint (L
"BOC - argument error\n");
60 return EFI_DEBUG_CONTINUE
;
65 DebuggerCommand BreakOnCALLEX.
68 @param CommandArg The argument for this command
69 @param DebuggerPrivate EBC Debugger private data structure
70 @param ExceptionType Exceptiont type.
71 @param SystemContext EBC system context.
73 @retval EFI_DEBUG_CONTINUE formal return value
77 DebuggerBreakOnCALLEX (
78 IN CHAR16
*CommandArg
,
79 IN EFI_DEBUGGER_PRIVATE_DATA
*DebuggerPrivate
,
80 IN EFI_EXCEPTION_TYPE ExceptionType
,
81 IN OUT EFI_SYSTEM_CONTEXT SystemContext
87 if (CommandArg
== NULL
) {
88 if ((DebuggerPrivate
->FeatureFlags
& EFI_DEBUG_FLAG_EBC_BOCX
) == EFI_DEBUG_FLAG_EBC_BOCX
) {
89 EDBPrint (L
"BOCX on\n");
91 EDBPrint (L
"BOCX off\n");
93 } else if (StriCmp (CommandArg
, L
"on") == 0) {
94 DebuggerPrivate
->FeatureFlags
|= EFI_DEBUG_FLAG_EBC_BOCX
;
95 EDBPrint (L
"BOCX on\n");
96 } else if (StriCmp (CommandArg
, L
"off") == 0) {
97 DebuggerPrivate
->FeatureFlags
&= ~EFI_DEBUG_FLAG_EBC_B_BOCX
;
98 EDBPrint (L
"BOCX off\n");
100 EDBPrint (L
"BOCX - argument error\n");
106 return EFI_DEBUG_CONTINUE
;
111 DebuggerCommand - BreakOnRET.
114 @param CommandArg The argument for this command
115 @param DebuggerPrivate EBC Debugger private data structure
116 @param ExceptionType Exception type.
117 @param SystemContext EBC system context.
119 @retval EFI_DEBUG_CONTINUE formal return value
124 IN CHAR16
*CommandArg
,
125 IN EFI_DEBUGGER_PRIVATE_DATA
*DebuggerPrivate
,
126 IN EFI_EXCEPTION_TYPE ExceptionType
,
127 IN OUT EFI_SYSTEM_CONTEXT SystemContext
133 if (CommandArg
== NULL
) {
134 if ((DebuggerPrivate
->FeatureFlags
& EFI_DEBUG_FLAG_EBC_BOR
) == EFI_DEBUG_FLAG_EBC_BOR
) {
135 EDBPrint (L
"BOR on\n");
137 EDBPrint (L
"BOR off\n");
139 } else if (StriCmp (CommandArg
, L
"on") == 0) {
140 DebuggerPrivate
->FeatureFlags
|= EFI_DEBUG_FLAG_EBC_BOR
;
141 EDBPrint (L
"BOR on\n");
142 } else if (StriCmp (CommandArg
, L
"off") == 0) {
143 DebuggerPrivate
->FeatureFlags
&= ~EFI_DEBUG_FLAG_EBC_B_BOR
;
144 EDBPrint (L
"BOR off\n");
146 EDBPrint (L
"BOR - argument error\n");
152 return EFI_DEBUG_CONTINUE
;
157 DebuggerCommand - BreakOnEntrypoint.
160 @param CommandArg The argument for this command
161 @param DebuggerPrivate EBC Debugger private data structure
162 @param ExceptionType Exception type.
163 @param SystemContext EBC system context.
165 @retval EFI_DEBUG_CONTINUE formal return value
169 DebuggerBreakOnEntrypoint (
170 IN CHAR16
*CommandArg
,
171 IN EFI_DEBUGGER_PRIVATE_DATA
*DebuggerPrivate
,
172 IN EFI_EXCEPTION_TYPE ExceptionType
,
173 IN OUT EFI_SYSTEM_CONTEXT SystemContext
179 if (CommandArg
== NULL
) {
180 if ((DebuggerPrivate
->FeatureFlags
& EFI_DEBUG_FLAG_EBC_BOE
) == EFI_DEBUG_FLAG_EBC_BOE
) {
181 EDBPrint (L
"BOE on\n");
183 EDBPrint (L
"BOE off\n");
185 } else if (StriCmp (CommandArg
, L
"on") == 0) {
186 DebuggerPrivate
->FeatureFlags
|= EFI_DEBUG_FLAG_EBC_BOE
;
187 EDBPrint (L
"BOE on\n");
188 } else if (StriCmp (CommandArg
, L
"off") == 0) {
189 DebuggerPrivate
->FeatureFlags
&= ~EFI_DEBUG_FLAG_EBC_B_BOE
;
190 EDBPrint (L
"BOE off\n");
192 EDBPrint (L
"BOE - argument error\n");
198 return EFI_DEBUG_CONTINUE
;
204 DebuggerCommand - BreakOnThunk.
207 @param CommandArg The argument for this command
208 @param DebuggerPrivate EBC Debugger private data structure
209 @param ExceptionType Exception type.
210 @param SystemContext EBC system context.
213 @retval EFI_DEBUG_CONTINUE formal return value
217 DebuggerBreakOnThunk (
218 IN CHAR16
*CommandArg
,
219 IN EFI_DEBUGGER_PRIVATE_DATA
*DebuggerPrivate
,
220 IN EFI_EXCEPTION_TYPE ExceptionType
,
221 IN OUT EFI_SYSTEM_CONTEXT SystemContext
227 if (CommandArg
== NULL
) {
228 if ((DebuggerPrivate
->FeatureFlags
& EFI_DEBUG_FLAG_EBC_BOT
) == EFI_DEBUG_FLAG_EBC_BOT
) {
229 EDBPrint (L
"BOT on\n");
231 EDBPrint (L
"BOT off\n");
233 } else if (StriCmp (CommandArg
, L
"on") == 0) {
234 DebuggerPrivate
->FeatureFlags
|= EFI_DEBUG_FLAG_EBC_BOT
;
235 EDBPrint (L
"BOT on\n");
236 } else if (StriCmp (CommandArg
, L
"off") == 0) {
237 DebuggerPrivate
->FeatureFlags
&= ~EFI_DEBUG_FLAG_EBC_B_BOT
;
238 EDBPrint (L
"BOT off\n");
240 EDBPrint (L
"BOT - argument error\n");
246 return EFI_DEBUG_CONTINUE
;
251 DebuggerCommand - BreakOnKey.
254 @param CommandArg The argument for this command
255 @param DebuggerPrivate EBC Debugger private data structure
256 @param ExceptionType Exception type.
257 @param SystemContext EBC system context.
260 @retval EFI_DEBUG_CONTINUE formal return value
265 IN CHAR16
*CommandArg
,
266 IN EFI_DEBUGGER_PRIVATE_DATA
*DebuggerPrivate
,
267 IN EFI_EXCEPTION_TYPE ExceptionType
,
268 IN OUT EFI_SYSTEM_CONTEXT SystemContext
274 if (CommandArg
== NULL
) {
275 if ((DebuggerPrivate
->FeatureFlags
& EFI_DEBUG_FLAG_EBC_BOK
) == EFI_DEBUG_FLAG_EBC_BOK
) {
276 EDBPrint (L
"BOK on\n");
278 EDBPrint (L
"BOK off\n");
280 } else if (StriCmp (CommandArg
, L
"on") == 0) {
281 DebuggerPrivate
->FeatureFlags
|= EFI_DEBUG_FLAG_EBC_BOK
;
282 EDBPrint (L
"BOK on\n");
283 } else if (StriCmp (CommandArg
, L
"off") == 0) {
284 DebuggerPrivate
->FeatureFlags
&= ~EFI_DEBUG_FLAG_EBC_B_BOK
;
285 EDBPrint (L
"BOK off\n");
287 EDBPrint (L
"BOK - argument error\n");
293 return EFI_DEBUG_CONTINUE
;