TianoCore EDK2 master
Loading...
Searching...
No Matches
EdbCmdSymbol.c File Reference
#include "Edb.h"

Go to the source code of this file.

Functions

CHAR16 * GetFileNameFromFullPath (IN CHAR16 *FullPath)
 
CHAR16 * GetDirNameFromFullPath (IN CHAR16 *FullPath)
 
CHAR16 * ConstructFullPath (IN CHAR16 *DirPath, IN CHAR16 *FilePath, IN UINTN Size)
 
CHAR16 * EdbSymbolTypeToStr (IN EFI_DEBUGGER_SYMBOL_TYPE Type)
 
EFI_DEBUG_STATUS DebuggerDisplaySymbolAccrodingToAddress (IN UINTN Address, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate)
 
EFI_DEBUG_STATUS DebuggerDisplaySymbolAccrodingToName (IN CHAR16 *SymbolFileName, IN CHAR16 *SymbolName, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate)
 
EFI_DEBUG_STATUS DebuggerListSymbol (IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
 
EFI_DEBUG_STATUS DebuggerLoadSymbol (IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
 
EFI_DEBUG_STATUS DebuggerUnloadSymbol (IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
 
EFI_DEBUG_STATUS DebuggerDisplaySymbol (IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
 
EFI_DEBUG_STATUS DebuggerLoadCode (IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
 
EFI_DEBUG_STATUS DebuggerUnloadCode (IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
 
EFI_DEBUG_STATUS DebuggerDisplayCode (IN CHAR16 *CommandArg, IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN EFI_EXCEPTION_TYPE ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
 

Variables

CHAR16 * mSymbolTypeStr []
 

Detailed Description

Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file EdbCmdSymbol.c.

Function Documentation

◆ ConstructFullPath()

CHAR16 * ConstructFullPath ( IN CHAR16 *  DirPath,
IN CHAR16 *  FilePath,
IN UINTN  Size 
)

Construct full path according to dir and file path.

Parameters
DirPath- dir path
FilePath- file path
Size- dir max size
Returns
Full file name

Definition at line 77 of file EdbCmdSymbol.c.

◆ DebuggerDisplayCode()

EFI_DEBUG_STATUS DebuggerDisplayCode ( IN CHAR16 *  CommandArg,
IN EFI_DEBUGGER_PRIVATE_DATA DebuggerPrivate,
IN EFI_EXCEPTION_TYPE  ExceptionType,
IN OUT EFI_SYSTEM_CONTEXT  SystemContext 
)

DebuggerCommand - DisplayCode.

Parameters
CommandArg- The argument for this command
DebuggerPrivate- EBC Debugger private data structure
ExceptionType- Exception type.
SystemContext- EBC system context.
Return values
EFI_DEBUG_CONTINUE- formal return value

Definition at line 856 of file EdbCmdSymbol.c.

◆ DebuggerDisplaySymbol()

EFI_DEBUG_STATUS DebuggerDisplaySymbol ( IN CHAR16 *  CommandArg,
IN EFI_DEBUGGER_PRIVATE_DATA DebuggerPrivate,
IN EFI_EXCEPTION_TYPE  ExceptionType,
IN OUT EFI_SYSTEM_CONTEXT  SystemContext 
)

DebuggerCommand - DisplaySymbol.

Parameters
CommandArg- The argument for this command
DebuggerPrivate- EBC Debugger private data structure
ExceptionType- Exception type.
SystemContext- EBC system context.
Return values
EFI_DEBUG_CONTINUE- formal return value

Definition at line 656 of file EdbCmdSymbol.c.

◆ DebuggerDisplaySymbolAccrodingToAddress()

EFI_DEBUG_STATUS DebuggerDisplaySymbolAccrodingToAddress ( IN UINTN  Address,
IN EFI_DEBUGGER_PRIVATE_DATA DebuggerPrivate 
)

Find the symbol according to address and display symbol.

Parameters
Address- SymbolAddress
DebuggerPrivate- EBC Debugger private data structure
Return values
EFI_DEBUG_CONTINUE- formal return value

Definition at line 133 of file EdbCmdSymbol.c.

◆ DebuggerDisplaySymbolAccrodingToName()

EFI_DEBUG_STATUS DebuggerDisplaySymbolAccrodingToName ( IN CHAR16 *  SymbolFileName,
IN CHAR16 *  SymbolName,
IN EFI_DEBUGGER_PRIVATE_DATA DebuggerPrivate 
)

Find the symbol according to name and display symbol.

Parameters
SymbolFileName- The Symbol File Name, NULL means for all
SymbolName- The Symbol Name, NULL means for all
DebuggerPrivate- EBC Debugger private data structure
Return values
EFI_DEBUG_CONTINUE- formal return value

Definition at line 197 of file EdbCmdSymbol.c.

◆ DebuggerListSymbol()

EFI_DEBUG_STATUS DebuggerListSymbol ( IN CHAR16 *  CommandArg,
IN EFI_DEBUGGER_PRIVATE_DATA DebuggerPrivate,
IN EFI_EXCEPTION_TYPE  ExceptionType,
IN OUT EFI_SYSTEM_CONTEXT  SystemContext 
)

DebuggerCommand - ListSymbol.

Parameters
CommandArg- The argument for this command
DebuggerPrivate- EBC Debugger private data structure
ExceptionType- Exception type.
SystemContext- EBC system context.
Return values
EFI_DEBUG_CONTINUE- formal return value

Definition at line 310 of file EdbCmdSymbol.c.

◆ DebuggerLoadCode()

EFI_DEBUG_STATUS DebuggerLoadCode ( IN CHAR16 *  CommandArg,
IN EFI_DEBUGGER_PRIVATE_DATA DebuggerPrivate,
IN EFI_EXCEPTION_TYPE  ExceptionType,
IN OUT EFI_SYSTEM_CONTEXT  SystemContext 
)

DebuggerCommand - LoadCode.

Parameters
CommandArg- The argument for this command
DebuggerPrivate- EBC Debugger private data structure
ExceptionType- Exception type.
SystemContext- EBC system context.
Return values
EFI_DEBUG_CONTINUE- formal return value

Definition at line 692 of file EdbCmdSymbol.c.

◆ DebuggerLoadSymbol()

EFI_DEBUG_STATUS DebuggerLoadSymbol ( IN CHAR16 *  CommandArg,
IN EFI_DEBUGGER_PRIVATE_DATA DebuggerPrivate,
IN EFI_EXCEPTION_TYPE  ExceptionType,
IN OUT EFI_SYSTEM_CONTEXT  SystemContext 
)

DebuggerCommand - LoadSymbol.

Parameters
CommandArg- The argument for this command
DebuggerPrivate- EBC Debugger private data structure
ExceptionType- Exception type.
SystemContext- EBC system context.
Return values
EFI_DEBUG_CONTINUE- formal return value

Definition at line 394 of file EdbCmdSymbol.c.

◆ DebuggerUnloadCode()

EFI_DEBUG_STATUS DebuggerUnloadCode ( IN CHAR16 *  CommandArg,
IN EFI_DEBUGGER_PRIVATE_DATA DebuggerPrivate,
IN EFI_EXCEPTION_TYPE  ExceptionType,
IN OUT EFI_SYSTEM_CONTEXT  SystemContext 
)

DebuggerCommand - UnloadCode.

Parameters
CommandArg- The argument for this command
DebuggerPrivate- EBC Debugger private data structure
ExceptionType- Exception type.
SystemContext- EBC system context.
Return values
EFI_DEBUG_CONTINUE- formal return value

Definition at line 790 of file EdbCmdSymbol.c.

◆ DebuggerUnloadSymbol()

EFI_DEBUG_STATUS DebuggerUnloadSymbol ( IN CHAR16 *  CommandArg,
IN EFI_DEBUGGER_PRIVATE_DATA DebuggerPrivate,
IN EFI_EXCEPTION_TYPE  ExceptionType,
IN OUT EFI_SYSTEM_CONTEXT  SystemContext 
)

DebuggerCommand - UnloadSymbol

Parameters
CommandArg- The argument for this command
DebuggerPrivate- EBC Debugger private data structure
ExceptionType- Exception type.
SystemContext- EBC system context.
Return values
EFI_DEBUG_CONTINUE- formal return value

Definition at line 556 of file EdbCmdSymbol.c.

◆ EdbSymbolTypeToStr()

CHAR16 * EdbSymbolTypeToStr ( IN EFI_DEBUGGER_SYMBOL_TYPE  Type)

Comvert Symbol Type to string.

Parameters
Type- Symbol Type
Returns
String

Definition at line 111 of file EdbCmdSymbol.c.

◆ GetDirNameFromFullPath()

CHAR16 * GetDirNameFromFullPath ( IN CHAR16 *  FullPath)

Get dir name from full path.

Parameters
FullPath- full file path
Returns
dir name

Definition at line 50 of file EdbCmdSymbol.c.

◆ GetFileNameFromFullPath()

CHAR16 * GetFileNameFromFullPath ( IN CHAR16 *  FullPath)

Get file name from full path.

Parameters
FullPath- full file path
Returns
file name

Definition at line 21 of file EdbCmdSymbol.c.

Variable Documentation

◆ mSymbolTypeStr

CHAR16* mSymbolTypeStr[]
Initial value:
= {
L"( F)",
L"(SF)",
L"(GV)",
L"(SV)",
}

Definition at line 94 of file EdbCmdSymbol.c.