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:
Pete Batard
2016-11-16 21:24:08 +08:00
committed by Jiewen Yao
parent 0265811dbe
commit 6f0a3cd23e
9 changed files with 339 additions and 7 deletions

View File

@ -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;
}