mirror of https://github.com/acidanthera/audk.git
MdeModulePkg: Fix GCC build failure
Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Pete Batard <pete@akeo.ie> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Jiewen.yao@intel.com
This commit is contained in:
parent
bb767506b2
commit
8ae1714047
|
@ -194,7 +194,6 @@ Returns:
|
|||
{
|
||||
UINT64 Address;
|
||||
UINTN Index;
|
||||
UINT16 OldInstruction;
|
||||
BOOLEAN IsHitBreakpoint;
|
||||
|
||||
//
|
||||
|
@ -209,7 +208,6 @@ Returns:
|
|||
for (Index = 0; (Index < DebuggerPrivate->DebuggerBreakpointCount) && (Index < EFI_DEBUGGER_BREAKPOINT_MAX); Index++) {
|
||||
if ((DebuggerPrivate->DebuggerBreakpointContext[Index].BreakpointAddress == Address) &&
|
||||
(DebuggerPrivate->DebuggerBreakpointContext[Index].State)) {
|
||||
OldInstruction = (UINT16)DebuggerPrivate->DebuggerBreakpointContext[Index].OldInstruction;
|
||||
IsHitBreakpoint = TRUE;
|
||||
break;
|
||||
}
|
||||
|
@ -244,7 +242,6 @@ Returns:
|
|||
for (Index = 0; (Index < DebuggerPrivate->DebuggerBreakpointCount) && (Index < EFI_DEBUGGER_BREAKPOINT_MAX); Index++) {
|
||||
if ((DebuggerPrivate->DebuggerBreakpointContext[Index].BreakpointAddress == Address) &&
|
||||
(DebuggerPrivate->DebuggerBreakpointContext[Index].State)) {
|
||||
OldInstruction = (UINT16)DebuggerPrivate->DebuggerBreakpointContext[Index].OldInstruction;
|
||||
IsHitBreakpoint = TRUE;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -439,8 +439,6 @@ Returns:
|
|||
{
|
||||
UINTN Index;
|
||||
EFI_STATUS Status;
|
||||
UINTN Address;
|
||||
UINT16 OldInstruction;
|
||||
|
||||
if (CommandArg == NULL) {
|
||||
EDBPrint (L"BreakpointClear Argument error!\n");
|
||||
|
@ -470,9 +468,6 @@ Returns:
|
|||
(Index >= DebuggerPrivate->DebuggerBreakpointCount)) {
|
||||
EDBPrint (L"BreakpointClear error!\n");
|
||||
return EFI_DEBUG_CONTINUE;
|
||||
} else {
|
||||
Address = (UINTN)DebuggerPrivate->DebuggerBreakpointContext[Index].BreakpointAddress;
|
||||
OldInstruction = (UINT16)DebuggerPrivate->DebuggerBreakpointContext[Index].OldInstruction;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
@ -457,11 +457,13 @@ Returns:
|
|||
NULL,
|
||||
&mDebuggerPrivate.BreakEvent
|
||||
);
|
||||
Status = gBS->SetTimer (
|
||||
mDebuggerPrivate.BreakEvent,
|
||||
TimerPeriodic,
|
||||
EFI_DEBUG_BREAK_TIMER_INTERVAL
|
||||
);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
Status = gBS->SetTimer (
|
||||
mDebuggerPrivate.BreakEvent,
|
||||
TimerPeriodic,
|
||||
EFI_DEBUG_BREAK_TIMER_INTERVAL
|
||||
);
|
||||
}
|
||||
|
||||
return ;
|
||||
}
|
||||
|
@ -493,7 +495,9 @@ Returns:
|
|||
//
|
||||
// Close the break event
|
||||
//
|
||||
gBS->CloseEvent (mDebuggerPrivate.BreakEvent);
|
||||
if (mDebuggerPrivate.BreakEvent != NULL) {
|
||||
gBS->CloseEvent (mDebuggerPrivate.BreakEvent);
|
||||
}
|
||||
|
||||
//
|
||||
// Clean up the symbol
|
||||
|
|
|
@ -193,7 +193,6 @@ Returns:
|
|||
{
|
||||
CHAR8 *LineBuffer;
|
||||
CHAR8 *FieldBuffer;
|
||||
EFI_DEBUGGER_SYMBOL_ENTRY *Entry;
|
||||
EDB_EBC_MAP_PARSE_STATE MapParseState;
|
||||
EDB_EBC_SYMBOL_PARSE_STATE SymbolParseState;
|
||||
CHAR8 *Name;
|
||||
|
@ -201,7 +200,6 @@ Returns:
|
|||
UINTN Address;
|
||||
EFI_DEBUGGER_SYMBOL_TYPE Type;
|
||||
|
||||
Entry = Object->Entry;
|
||||
|
||||
//
|
||||
// Begin to parse the Buffer
|
||||
|
|
Loading…
Reference in New Issue