EFI_STATUS Status;\r
EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL *EbcSimpleDebugger;\r
\r
- //\r
- // end DEBUG_CODE\r
- //\r
EbcSimpleDebugger = NULL;\r
Status = EFI_SUCCESS;\r
StackCorrupted = 0;\r
//\r
// Try to get the debug support for EBC\r
//\r
- DEBUG_CODE (\r
+ DEBUG_CODE_BEGIN ();\r
Status = gBS->LocateProtocol (\r
&mEbcSimpleDebuggerProtocolGuid,\r
NULL,\r
if (EFI_ERROR (Status)) {\r
EbcSimpleDebugger = NULL;\r
}\r
- );\r
+ DEBUG_CODE_END ();\r
\r
//\r
// Save the start IP for debug. For example, if we take an exception we\r
//\r
// If we've found a simple debugger protocol, call it\r
//\r
- DEBUG_CODE (\r
+ DEBUG_CODE_BEGIN ();\r
if (EbcSimpleDebugger != NULL) {\r
EbcSimpleDebugger->Debugger (EbcSimpleDebugger, VmPtr);\r
}\r
- );\r
+ DEBUG_CODE_END ();\r
\r
//\r
// Verify the opcode is in range. Otherwise generate an exception.\r