TianoCore EDK2 master
Loading...
Searching...
No Matches
EdbCommand.h
Go to the documentation of this file.
1
9#ifndef _EFI_EDB_COMMAND_H_
10#define _EFI_EDB_COMMAND_H_
11
12typedef enum {
13 EdbWidthUint8,
14 EdbWidthUint16,
15 EdbWidthUint32,
16 EdbWidthUint64,
17 EdbWidthMax
18} EDB_DATA_WIDTH;
19
31EFI_DEBUGGER_COMMAND
33 IN CHAR16 *CommandName,
34 IN CHAR16 **CommandArg
35 );
36
47CHAR16 *
49 IN EFI_INPUT_KEY CommandKey
50 );
51
52//
53// Definition for Command Table
54//
55#define EDB_COMMAND_DEFINE(func) \
56EFI_DEBUG_STATUS \
57func ( \
58 IN CHAR16 *CommandArg, \
59 IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, \
60 IN EFI_EXCEPTION_TYPE ExceptionType, \
61 IN OUT EFI_SYSTEM_CONTEXT SystemContext \
62 )
63
64EDB_COMMAND_DEFINE (DebuggerCallStack);
65EDB_COMMAND_DEFINE (DebuggerInstructionBranch);
66EDB_COMMAND_DEFINE (DebuggerBreakOnCALL);
67EDB_COMMAND_DEFINE (DebuggerBreakOnCALLEX);
68EDB_COMMAND_DEFINE (DebuggerBreakOnRET);
69EDB_COMMAND_DEFINE (DebuggerBreakOnEntrypoint);
70EDB_COMMAND_DEFINE (DebuggerBreakOnThunk);
71EDB_COMMAND_DEFINE (DebuggerBreakOnKey);
72EDB_COMMAND_DEFINE (DebuggerBreakpointList);
73EDB_COMMAND_DEFINE (DebuggerBreakpointSet);
74EDB_COMMAND_DEFINE (DebuggerBreakpointClear);
75EDB_COMMAND_DEFINE (DebuggerBreakpointDisable);
76EDB_COMMAND_DEFINE (DebuggerBreakpointEnable);
77EDB_COMMAND_DEFINE (DebuggerGo);
78EDB_COMMAND_DEFINE (DebuggerHelp);
79EDB_COMMAND_DEFINE (DebuggerMemoryDB);
80EDB_COMMAND_DEFINE (DebuggerMemoryDW);
81EDB_COMMAND_DEFINE (DebuggerMemoryDD);
82EDB_COMMAND_DEFINE (DebuggerMemoryDQ);
83EDB_COMMAND_DEFINE (DebuggerMemoryEB);
84EDB_COMMAND_DEFINE (DebuggerMemoryEW);
85EDB_COMMAND_DEFINE (DebuggerMemoryED);
86EDB_COMMAND_DEFINE (DebuggerMemoryEQ);
87EDB_COMMAND_DEFINE (DebuggerQuit);
88EDB_COMMAND_DEFINE (DebuggerRegister);
89EDB_COMMAND_DEFINE (DebuggerScope);
90EDB_COMMAND_DEFINE (DebuggerList);
91EDB_COMMAND_DEFINE (DebuggerStepInto);
92EDB_COMMAND_DEFINE (DebuggerStepOver);
93EDB_COMMAND_DEFINE (DebuggerStepOut);
94EDB_COMMAND_DEFINE (DebuggerListSymbol);
95EDB_COMMAND_DEFINE (DebuggerLoadSymbol);
96EDB_COMMAND_DEFINE (DebuggerUnloadSymbol);
97EDB_COMMAND_DEFINE (DebuggerDisplaySymbol);
98EDB_COMMAND_DEFINE (DebuggerLoadCode);
99EDB_COMMAND_DEFINE (DebuggerUnloadCode);
100EDB_COMMAND_DEFINE (DebuggerDisplayCode);
101EDB_COMMAND_DEFINE (DebuggerExtIoIB);
102EDB_COMMAND_DEFINE (DebuggerExtIoIW);
103EDB_COMMAND_DEFINE (DebuggerExtIoID);
104EDB_COMMAND_DEFINE (DebuggerExtIoOB);
105EDB_COMMAND_DEFINE (DebuggerExtIoOW);
106EDB_COMMAND_DEFINE (DebuggerExtIoOD);
107EDB_COMMAND_DEFINE (DebuggerExtPciPCIL);
108EDB_COMMAND_DEFINE (DebuggerExtPciPCID);
109EDB_COMMAND_DEFINE (DebuggerExtPciCFGB);
110EDB_COMMAND_DEFINE (DebuggerExtPciCFGW);
111EDB_COMMAND_DEFINE (DebuggerExtPciCFGD);
112
113extern EFI_DEBUGGER_COMMAND_SET mDebuggerCommandSet[];
114
115#endif
EFI_DEBUG_STATUS DebuggerInstructionBranch(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdBranch.c:259
EFI_DEBUG_STATUS DebuggerCallStack(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdBranch.c:53
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
EFI_DEBUG_STATUS DebuggerBreakpointDisable(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
EFI_DEBUG_STATUS DebuggerBreakpointList(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
EFI_DEBUG_STATUS DebuggerBreakpointEnable(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
EFI_DEBUG_STATUS DebuggerBreakpointSet(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
EFI_DEBUG_STATUS DebuggerBreakpointClear(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
EFI_DEBUG_STATUS DebuggerExtIoOB(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdExtIo.c:107
EFI_DEBUG_STATUS DebuggerExtIoIW(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdExtIo.c:52
EFI_DEBUG_STATUS DebuggerExtIoOW(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdExtIo.c:134
EFI_DEBUG_STATUS DebuggerExtIoOD(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdExtIo.c:161
EFI_DEBUG_STATUS DebuggerExtIoIB(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdExtIo.c:24
EFI_DEBUG_STATUS DebuggerExtIoID(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdExtIo.c:80
EFI_DEBUG_STATUS DebuggerExtPciPCID(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdExtPci.c:51
EFI_DEBUG_STATUS DebuggerExtPciPCIL(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdExtPci.c:24
EFI_DEBUG_STATUS DebuggerExtPciCFGB(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdExtPci.c:78
EFI_DEBUG_STATUS DebuggerExtPciCFGD(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdExtPci.c:132
EFI_DEBUG_STATUS DebuggerExtPciCFGW(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdExtPci.c:105
EFI_DEBUG_STATUS DebuggerGo(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdGo.c:26
EFI_DEBUG_STATUS DebuggerHelp(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdHelp.c:24
EFI_DEBUG_STATUS DebuggerMemoryDQ(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdMemory.c:484
EFI_DEBUG_STATUS DebuggerMemoryED(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdMemory.c:553
EFI_DEBUG_STATUS DebuggerMemoryDW(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdMemory.c:438
EFI_DEBUG_STATUS DebuggerMemoryEW(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdMemory.c:530
EFI_DEBUG_STATUS DebuggerMemoryEQ(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdMemory.c:576
EFI_DEBUG_STATUS DebuggerMemoryEB(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdMemory.c:507
EFI_DEBUG_STATUS DebuggerMemoryDD(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdMemory.c:461
EFI_DEBUG_STATUS DebuggerMemoryDB(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdMemory.c:415
EFI_DEBUG_STATUS DebuggerQuit(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdQuit.c:30
EFI_DEBUG_STATUS DebuggerRegister(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
EFI_DEBUG_STATUS DebuggerList(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdScope.c:78
EFI_DEBUG_STATUS DebuggerScope(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdScope.c:24
EFI_DEBUG_STATUS DebuggerStepOut(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdStep.c:136
EFI_DEBUG_STATUS DebuggerStepOver(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdStep.c:101
EFI_DEBUG_STATUS DebuggerStepInto(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdStep.c:76
EFI_DEBUG_STATUS DebuggerListSymbol(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdSymbol.c:310
EFI_DEBUG_STATUS DebuggerLoadCode(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdSymbol.c:692
EFI_DEBUG_STATUS DebuggerUnloadCode(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdSymbol.c:790
EFI_DEBUG_STATUS DebuggerUnloadSymbol(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdSymbol.c:556
EFI_DEBUG_STATUS DebuggerDisplayCode(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdSymbol.c:856
EFI_DEBUG_STATUS DebuggerDisplaySymbol(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdSymbol.c:656
EFI_DEBUG_STATUS DebuggerLoadSymbol(IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
Definition: EdbCmdSymbol.c:394
EFI_DEBUGGER_COMMAND MatchDebuggerCommand(IN CHAR16 *CommandName, IN CHAR16 **CommandArg)
Definition: EdbCommand.c:582
CHAR16 * GetCommandNameByKey(IN EFI_INPUT_KEY CommandKey)
Definition: EdbCommand.c:634
#define IN
Definition: Base.h:279