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

Go to the source code of this file.

Functions

BOOLEAN IsEBCBREAK3 (IN UINTN Address)
 
BOOLEAN DebuggerBreakpointIsDuplicated (IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN UINTN Address)
 
EFI_STATUS DebuggerBreakpointAdd (IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN UINTN Address)
 
EFI_STATUS DebuggerBreakpointDel (IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN UINTN Index)
 
EFI_STATUS DebuggerBreakpointDis (IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN UINTN Index)
 
EFI_STATUS DebuggerBreakpointEn (IN EFI_DEBUGGER_PRIVATE_DATA *DebuggerPrivate, IN UINTN Index)
 
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 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 DebuggerBreakpointDisable (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)
 

Detailed Description

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

Definition in file EdbCmdBreakpoint.c.

Function Documentation

◆ DebuggerBreakpointAdd()

EFI_STATUS DebuggerBreakpointAdd ( IN EFI_DEBUGGER_PRIVATE_DATA DebuggerPrivate,
IN UINTN  Address 
)

Add this breakpoint.

Parameters
DebuggerPrivateEBC Debugger private data structure
AddressBreakpoint Address
Return values
EFI_SUCCESSbreakpoint added successfully
EFI_ALREADY_STARTEDbreakpoint is already added
EFI_OUT_OF_RESOURCESall the breakpoint entries are used

Definition at line 87 of file EdbCmdBreakpoint.c.

◆ DebuggerBreakpointClear()

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

DebuggerCommand - BreakpointClear

Parameters
CommandArgThe argument for this command
DebuggerPrivateEBC Debugger private data structure
ExceptionTypeException type.
SystemContextEBC system context.
Return values
EFI_DEBUG_CONTINUEformal return value

Definition at line 375 of file EdbCmdBreakpoint.c.

◆ DebuggerBreakpointDel()

EFI_STATUS DebuggerBreakpointDel ( IN EFI_DEBUGGER_PRIVATE_DATA DebuggerPrivate,
IN UINTN  Index 
)

Delete this breakpoint.

Parameters
DebuggerPrivateEBC Debugger private data structure
IndexBreakpoint Index
Return values
EFI_SUCCESSbreakpoint deleted successfully
EFI_NOT_FOUNDbreakpoint not found

Definition at line 145 of file EdbCmdBreakpoint.c.

◆ DebuggerBreakpointDis()

EFI_STATUS DebuggerBreakpointDis ( IN EFI_DEBUGGER_PRIVATE_DATA DebuggerPrivate,
IN UINTN  Index 
)

Disable this breakpoint.

Parameters
DebuggerPrivateEBC Debugger private data structure
IndexBreakpoint Index
Return values
EFI_SUCCESSbreakpoint disabled successfully
EFI_NOT_FOUNDbreakpoint not found

Definition at line 194 of file EdbCmdBreakpoint.c.

◆ DebuggerBreakpointDisable()

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

DebuggerCommand - BreakpointDisable

Parameters
CommandArgThe argument for this command
DebuggerPrivateEBC Debugger private data structure
ExceptionTypeException type.
SystemContextEBC system context.
Return values
EFI_DEBUG_CONTINUEformal return value

Definition at line 443 of file EdbCmdBreakpoint.c.

◆ DebuggerBreakpointEn()

EFI_STATUS DebuggerBreakpointEn ( IN EFI_DEBUGGER_PRIVATE_DATA DebuggerPrivate,
IN UINTN  Index 
)

Enable this breakpoint.

Parameters
DebuggerPrivate- EBC Debugger private data structure
Index- Breakpoint Index
Return values
EFI_SUCCESS- breakpoint enabled successfully
EFI_NOT_FOUND- breakpoint not found

Definition at line 225 of file EdbCmdBreakpoint.c.

◆ DebuggerBreakpointEnable()

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

DebuggerCommand - BreakpointEnable.

Parameters
CommandArgThe argument for this command
DebuggerPrivateEBC Debugger private data structure
ExceptionTypeException type.
SystemContextEBC system context.
Return values
EFI_DEBUG_CONTINUEformal return value

Definition at line 505 of file EdbCmdBreakpoint.c.

◆ DebuggerBreakpointIsDuplicated()

BOOLEAN DebuggerBreakpointIsDuplicated ( IN EFI_DEBUGGER_PRIVATE_DATA DebuggerPrivate,
IN UINTN  Address 
)

Check whether the Address is already set in breakpoint.

Parameters
DebuggerPrivateEBC Debugger private data structure
AddressBreakpoint Address
Return values
TRUEbreakpoint is found
FALSEbreakpoint is not found

Definition at line 49 of file EdbCmdBreakpoint.c.

◆ DebuggerBreakpointList()

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

DebuggerCommand - BreakpointList.

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 257 of file EdbCmdBreakpoint.c.

◆ DebuggerBreakpointSet()

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

DebuggerCommand - BreakpointSet.

Parameters
CommandArgThe argument for this command
DebuggerPrivateEBC Debugger private data structure
ExceptionTypeException type.
SystemContextEBC system context.
Return values
EFI_DEBUG_CONTINUE- formal return value

Definition at line 317 of file EdbCmdBreakpoint.c.

◆ IsEBCBREAK3()

BOOLEAN IsEBCBREAK3 ( IN UINTN  Address)

Check whether current IP is EBC BREAK3 instruction.

Parameters
AddressEBC IP address.
Return values
TRUECurrent IP is EBC BREAK3 instruction
FALSECurrent IP is not EBC BREAK3 instruction

Definition at line 22 of file EdbCmdBreakpoint.c.