TianoCore EDK2 master
Loading...
Searching...
No Matches
DebugPeCoffExtraActionLib.c
Go to the documentation of this file.
1
11#include <PiDxe.h>
12#include <Library/PeCoffLib.h>
13
14#include <Library/BaseLib.h>
15#include <Library/DebugLib.h>
18#include <Library/PrintLib.h>
19
29VOID
30EFIAPI
33 )
34{
35 #ifdef __GNUC__
36 if (ImageContext->PdbPointer) {
37 DEBUG ((
38 DEBUG_LOAD | DEBUG_INFO,
39 "add-symbol-file %a 0x%p\n",
40 ImageContext->PdbPointer,
41 (UINTN)(ImageContext->ImageAddress + ImageContext->SizeOfHeaders)
42 ));
43 return;
44 }
45
46 #endif
47
48 DEBUG ((
49 DEBUG_LOAD | DEBUG_INFO,
50 "Loading driver at 0x%11p EntryPoint=0x%11p\n",
51 (VOID *)(UINTN)ImageContext->ImageAddress,
52 FUNCTION_ENTRY_POINT (ImageContext->EntryPoint)
53 ));
54}
55
66VOID
67EFIAPI
70 )
71{
72 #ifdef __GNUC__
73 if (ImageContext->PdbPointer) {
74 DEBUG ((
75 DEBUG_LOAD | DEBUG_INFO,
76 "remove-symbol-file %a 0x%08x\n",
77 ImageContext->PdbPointer,
78 (UINTN)(ImageContext->ImageAddress + ImageContext->SizeOfHeaders)
79 ));
80 return;
81 }
82
83 #endif
84
85 DEBUG ((
86 DEBUG_LOAD | DEBUG_INFO,
87 "Unloading driver at 0x%11p\n",
88 (VOID *)(UINTN)ImageContext->ImageAddress
89 ));
90}
UINT64 UINTN
#define FUNCTION_ENTRY_POINT(FunctionPointer)
VOID EFIAPI PeCoffLoaderUnloadImageExtraAction(IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext)
VOID EFIAPI PeCoffLoaderRelocateImageExtraAction(IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext)
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
#define DEBUG(Expression)
Definition: DebugLib.h:434