X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FInclude%2FLibrary%2FPeCoffGetEntryPointLib.h;h=684977eceab00445b97d5b5513e1e55a0c925cbf;hb=98a1fa1f349476533c626020a7196f08c1ef2dba;hp=973a36865528e13efdeaa5bf3adf67d8a69b84ac;hpb=2ce311322c72857f73138c45358e722607a1e80c;p=mirror_edk2.git diff --git a/MdePkg/Include/Library/PeCoffGetEntryPointLib.h b/MdePkg/Include/Library/PeCoffGetEntryPointLib.h index 973a368655..684977ecea 100644 --- a/MdePkg/Include/Library/PeCoffGetEntryPointLib.h +++ b/MdePkg/Include/Library/PeCoffGetEntryPointLib.h @@ -10,8 +10,6 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - Module Name: PeCoffGetEntryPointLib.h - **/ #ifndef __PE_COFF_GET_ENTRY_POINT_LIB_H__ @@ -42,18 +40,46 @@ PeCoffLoaderGetEntryPoint ( ); /** - Returns the machine type of PE/COFF image. + Returns the machine type of a PE/COFF image. + + Returns the machine type from the PE/COFF image specified by Pe32Data. + If Pe32Data is NULL, then ASSERT(). - @param Image Pointer to a PE/COFF header + @param Pe32Data Pointer to the PE/COFF image that is loaded in system + memory. - @return Machine type or zero if not a valid iamge + @return Machine type or zero if not a valid iamge. **/ UINT16 EFIAPI PeCoffLoaderGetMachineType ( - IN VOID *Image + IN VOID *Pe32Data ); +/** + Returns a pointer to the PDB file name for a PE/COFF image that has been + loaded into system memory with the PE/COFF Loader Library functions. + + Returns the PDB file name for the PE/COFF image specified by Pe32Data. If + the PE/COFF image specified by Pe32Data is not a valid, then NULL is + returned. If the PE/COFF image specified by Pe32Data does not contain a + debug directory entry, then NULL is returned. If the debug directory entry + in the PE/COFF image specified by Pe32Data does not contain a PDB file name, + then NULL is returned. + If Pe32Data is NULL, then ASSERT(). + + @param Pe32Data Pointer to the PE/COFF image that is loaded in system + memory. + + @return The PDB file name for the PE/COFF image specified by Pe32Data or NULL + if it cannot be retrieved. + +**/ +VOID * +EFIAPI +PeCoffLoaderGetPdbPointer ( + IN VOID *Pe32Data + ); #endif