3 Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>
4 SPDX-License-Identifier: BSD-2-Clause-Patent
13 DebuggerCommand - Scope.
15 @param CommandArg - The argument for this command
16 @param DebuggerPrivate - EBC Debugger private data structure
17 @param ExceptionType - Exception type.
18 @param SystemContext - EBC system context.
20 @retval EFI_DEBUG_CONTINUE - formal return value
25 IN CHAR16
*CommandArg
,
26 IN EFI_DEBUGGER_PRIVATE_DATA
*DebuggerPrivate
,
27 IN EFI_EXCEPTION_TYPE ExceptionType
,
28 IN OUT EFI_SYSTEM_CONTEXT SystemContext
34 if (CommandArg
== NULL
) {
35 EDBPrint (L
"Scope: invalid Address\n");
36 return EFI_DEBUG_CONTINUE
;
42 Status
= Symboltoi (CommandArg
, &Address
);
43 if (EFI_ERROR (Status
)) {
44 if (Status
== EFI_NOT_FOUND
) {
45 Address
= Xtoi(CommandArg
);
48 // Something wrong, let Symboltoi print error info.
50 EDBPrint (L
"Command Argument error!\n");
51 return EFI_DEBUG_CONTINUE
;
54 DebuggerPrivate
->InstructionScope
= Address
;
55 EDBPrint (L
"Scope: 0x%x\n", DebuggerPrivate
->InstructionScope
);
56 EdbShowDisasm (DebuggerPrivate
, SystemContext
);
61 return EFI_DEBUG_CONTINUE
;
66 DebuggerCommand - List.
68 @param CommandArg - The argument for this command
69 @param DebuggerPrivate - EBC Debugger private data structure
70 @param ExceptionType - Exception type.
71 @param SystemContext - EBC system context.
73 @retval EFI_DEBUG_CONTINUE - formal return value
78 IN CHAR16
*CommandArg
,
79 IN EFI_DEBUGGER_PRIVATE_DATA
*DebuggerPrivate
,
80 IN EFI_EXCEPTION_TYPE ExceptionType
,
81 IN OUT EFI_SYSTEM_CONTEXT SystemContext
84 if (CommandArg
== NULL
) {
85 EdbShowDisasm (DebuggerPrivate
, SystemContext
);
88 // Load new list number
90 DebuggerPrivate
->InstructionNumber
= Atoi(CommandArg
);
91 EDBPrint (L
"List Number: %d\n", DebuggerPrivate
->InstructionNumber
);
92 EdbShowDisasm (DebuggerPrivate
, SystemContext
);
98 return EFI_DEBUG_CONTINUE
;