TianoCore EDK2 master
|
#include <Uefi.h>
Go to the source code of this file.
Macros | |
#define | EFI_DEBUGGER_DEFAULT_LINK_IMAGEBASE 0x10000000 |
#define | EFI_DEBUGGER_MAX_SYMBOL_ADDRESS_DELTA_VALUE 0x100000 |
Functions | |
UINTN | EbdFindSymbolAddress (IN UINTN Address, IN EDB_MATCH_SYMBOL_TYPE Type, OUT EFI_DEBUGGER_SYMBOL_OBJECT **Object, OUT EFI_DEBUGGER_SYMBOL_ENTRY **Entry) |
EFI_STATUS | EdbLoadSymbol (IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN CHAR16 *FileName, IN UINTN BufferSize, IN VOID *Buffer) |
EFI_STATUS | EdbUnloadSymbol (IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN CHAR16 *FileName) |
EFI_STATUS | EdbPatchSymbolRVA (IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN CHAR16 *FileName, IN EDB_EBC_IMAGE_RVA_SEARCH_TYPE SearchType) |
EFI_STATUS | EdbLoadCode (IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN CHAR16 *MapFileName, IN CHAR16 *FileName, IN UINTN BufferSize, IN VOID *Buffer) |
EFI_STATUS | EdbUnloadCode (IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN CHAR16 *MapFileName, IN CHAR16 *FileName, OUT VOID **Buffer) |
EFI_STATUS | EdbAddCodeBuffer (IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN CHAR16 *MapFileName, IN CHAR16 *CodeFileName, IN UINTN SourceBufferSize, IN VOID *SourceBuffer) |
EFI_STATUS | EdbDeleteCodeBuffer (IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN CHAR16 *MapFileName, IN CHAR16 *CodeFileName, IN VOID *SourceBuffer) |
CHAR8 * | FindSymbolStr (IN UINTN Address) |
UINTN | EdbPrintSource (IN UINTN Address, IN BOOLEAN IsPrint) |
EFI_STATUS | Symboltoi (IN CHAR16 *Symbol, OUT UINTN *Address) |
Copyright (c) 2007, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file EdbSymbol.h.
#define EFI_DEBUGGER_DEFAULT_LINK_IMAGEBASE 0x10000000 |
Definition at line 17 of file EdbSymbol.h.
#define EFI_DEBUGGER_MAX_SYMBOL_ADDRESS_DELTA_VALUE 0x100000 |
Definition at line 19 of file EdbSymbol.h.
enum EDB_EBC_IMAGE_RVA_SEARCH_TYPE |
Definition at line 29 of file EdbSymbol.h.
enum EDB_MATCH_SYMBOL_TYPE |
Definition at line 21 of file EdbSymbol.h.
UINTN EbdFindSymbolAddress | ( | IN UINTN | Address, |
IN EDB_MATCH_SYMBOL_TYPE | Type, | ||
OUT EFI_DEBUGGER_SYMBOL_OBJECT ** | RetObject, | ||
OUT EFI_DEBUGGER_SYMBOL_ENTRY ** | RetEntry | ||
) |
Find symbol by address.
Address | - Symbol address |
Type | - Search type |
RetObject | - Symbol object |
RetEntry | - Symbol entry |
Definition at line 477 of file EdbSymbol.c.
EFI_STATUS EdbAddCodeBuffer | ( | IN EFI_DEBUGGER_PRIVATE_DATA * | DebuggerPrivate, |
IN CHAR16 * | MapFileName, | ||
IN CHAR16 * | CodeFileName, | ||
IN UINTN | SourceBufferSize, | ||
IN VOID * | SourceBuffer | ||
) |
Add code buffer.
DebuggerPrivate | - EBC Debugger private data structure |
MapFileName | - Symbol file name |
CodeFileName | - Code file name |
SourceBufferSize- | Code buffer size |
SourceBuffer | - Code buffer |
EFI_SUCCESS | - CodeBuffer added successfully |
Definition at line 1630 of file EdbSymbol.c.
EFI_STATUS EdbDeleteCodeBuffer | ( | IN EFI_DEBUGGER_PRIVATE_DATA * | DebuggerPrivate, |
IN CHAR16 * | MapFileName, | ||
IN CHAR16 * | CodeFileName, | ||
IN VOID * | SourceBuffer | ||
) |
Delete code buffer.
DebuggerPrivate | - EBC Debugger private data structure |
MapFileName | - Symbol file name |
CodeFileName | - Code file name |
SourceBuffer | - Code buffer |
EFI_SUCCESS | - CodeBuffer deleted successfully |
Definition at line 1674 of file EdbSymbol.c.
EFI_STATUS EdbLoadCode | ( | IN EFI_DEBUGGER_PRIVATE_DATA * | DebuggerPrivate, |
IN CHAR16 * | MapFileName, | ||
IN CHAR16 * | FileName, | ||
IN UINTN | BufferSize, | ||
IN VOID * | Buffer | ||
) |
Load code.
DebuggerPrivate | - EBC Debugger private data structure |
MapFileName | - Symbol file name |
FileName | - Code file name |
BufferSize | - Code file buffer size |
Buffer | - Code file buffer |
EFI_SUCCESS | - Code loaded successfully |
Definition at line 1438 of file EdbSymbol.c.
EFI_STATUS EdbLoadSymbol | ( | IN EFI_DEBUGGER_PRIVATE_DATA * | DebuggerPrivate, |
IN CHAR16 * | FileName, | ||
IN UINTN | BufferSize, | ||
IN VOID * | Buffer | ||
) |
Load symbol file by name.
DebuggerPrivate | - EBC Debugger private data structure |
FileName | - Symbol file name |
BufferSize | - Symbol file buffer size |
Buffer | - Symbol file buffer |
EFI_SUCCESS | - load symbol successfully |
Definition at line 693 of file EdbSymbol.c.
EFI_STATUS EdbPatchSymbolRVA | ( | IN EFI_DEBUGGER_PRIVATE_DATA * | DebuggerPrivate, |
IN CHAR16 * | FileName, | ||
IN EDB_EBC_IMAGE_RVA_SEARCH_TYPE | SearchType | ||
) |
Patch symbol RVA.
DebuggerPrivate | - EBC Debugger private data structure |
FileName | - Symbol file name |
SearchType | - Search type for Object |
EFI_SUCCESS | - Patch symbol RVA successfully |
EFI_NOT_FOUND | - Symbol RVA base not found |
Definition at line 997 of file EdbSymbol.c.
Print source.
Address | - Instruction address |
IsPrint | - Whether need to print |
1 | - find the source |
0 | - not find the source |
Definition at line 2086 of file EdbSymbol.c.
EFI_STATUS EdbUnloadCode | ( | IN EFI_DEBUGGER_PRIVATE_DATA * | DebuggerPrivate, |
IN CHAR16 * | MapFileName, | ||
IN CHAR16 * | FileName, | ||
OUT VOID ** | Buffer | ||
) |
Unload code.
DebuggerPrivate | - EBC Debugger private data structure |
MapFileName | - Symbol file name |
FileName | - Code file name |
Buffer | - Code file buffer |
EFI_SUCCESS | - Code unloaded successfully |
Definition at line 1554 of file EdbSymbol.c.
EFI_STATUS EdbUnloadSymbol | ( | IN EFI_DEBUGGER_PRIVATE_DATA * | DebuggerPrivate, |
IN CHAR16 * | FileName | ||
) |
Unload symbol file by name.
DebuggerPrivate | - EBC Debugger private data structure |
FileName | - Symbol file name |
EFI_SUCCESS | - unload symbol successfully |
Definition at line 614 of file EdbSymbol.c.
Find the symbol string according to address.
Address | - Symbol address |
Definition at line 1733 of file EdbSymbol.c.
EFI_STATUS Symboltoi | ( | IN CHAR16 * | Symbol, |
OUT UINTN * | Address | ||
) |
Convert a symbol to an address.
Symbol | - Symbol name |
Address | - Symbol address |
EFI_SUCCESS | - symbol found and address returned. |
EFI_NOT_FOUND | - symbol not found |
EFI_NO_MAPPING | - duplicated symbol not found |
Definition at line 2222 of file EdbSymbol.c.