MdeModulePkg/EbcDxe: prepare support for EBC Debugger
* This patch introduces EbcDebuggerHook.c/h and inserts the required EBCDebugger references into the existing EBC source files. * With all the hooks defined to their empty version in EbcDebuggerHook.c the existing EBC VM behaviour is left unaffected. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Pete Batard <pete@akeo.ie> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
@ -16,6 +16,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
#include "EbcInt.h"
|
||||
#include "EbcExecute.h"
|
||||
#include "EbcDebuggerHook.h"
|
||||
|
||||
//
|
||||
// We'll keep track of all thunks we create in a linked list. Each
|
||||
@ -497,6 +498,8 @@ InitializeEbcDriver (
|
||||
InitEbcVmTestProtocol (&ImageHandle);
|
||||
DEBUG_CODE_END ();
|
||||
|
||||
EbcDebuggerHookInit (ImageHandle, EbcDebugProtocol);
|
||||
|
||||
return EFI_SUCCESS;
|
||||
|
||||
ErrorExit:
|
||||
@ -1094,6 +1097,9 @@ EbcUnloadImage (
|
||||
// Now free up the image list element
|
||||
//
|
||||
FreePool (ImageList);
|
||||
|
||||
EbcDebuggerHookEbcUnloadImage (ImageHandle);
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user