3 Copyright (c) 2007, Intel Corporation
4 All rights reserved. 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.
25 IN CHAR16
*CommandArg
,
26 IN EFI_DEBUGGER_PRIVATE_DATA
*DebuggerPrivate
,
27 IN EFI_EXCEPTION_TYPE ExceptionType
,
28 IN OUT EFI_SYSTEM_CONTEXT SystemContext
38 CommandArg - The argument for this command
39 DebuggerPrivate - EBC Debugger private data structure
40 InterruptType - Interrupt type.
41 SystemContext - EBC system context.
45 EFI_DEBUG_BREAK - formal return value
46 EFI_DEBUG_CONTINUE - something wrong
57 if (CommandArg
!= NULL
) {
58 if (StriCmp (CommandArg
, L
"til") == 0) {
59 CommandStr
= StrGetNextTokenLine (L
" ");
60 if (CommandStr
!= NULL
) {
62 // Enable GoTil break now
63 // set BreakAddress, and set feature flag.
65 Status
= Symboltoi (CommandStr
, &Address
);
66 if (EFI_ERROR (Status
)) {
67 if (Status
== EFI_NOT_FOUND
) {
68 Address
= Xtoi(CommandStr
);
71 // Something wrong, let Symboltoi print error info.
73 EDBPrint (L
"Command Argument error!\n");
74 return EFI_DEBUG_CONTINUE
;
77 DebuggerPrivate
->GoTilContext
.BreakAddress
= Address
;
78 DebuggerPrivate
->FeatureFlags
|= EFI_DEBUG_FLAG_EBC_GT
;
80 EDBPrint (L
"Command Argument error!\n");
81 return EFI_DEBUG_CONTINUE
;
84 EDBPrint (L
"Command Argument error!\n");
85 return EFI_DEBUG_CONTINUE
;
92 return EFI_DEBUG_BREAK
;