In the old shell, 'dh -v' showed some useful information about the file path
associated with a LoadedImageProtocol that is no longer shown in the modern
shell.

For example, with the old shell:

    Handle D3 (3A552218)
    Image (3A54C918)   File:MicrocodeUpdate
        ParentHandle..: 3A666398
        SystemTable...: 3D2A8F18
        DeviceHandle..: 3B1C8098
        FilePath......: FvFile(F3331DE6-4A55-44E4-B767-7453F7A1A021)
        ImageBase.....: 3D650000 - 3D655540
        ImageSize.....: 5540
        CodeType......: RT_code   
        DataType......: RT_data   

compared to the new shell:

    D3: 3A552218
    LoadedImage
        Revision......: 0x00001000
        ParentHandle..: 3A666398
        SystemTable...: 3D2A8F18
        DeviceHandle..: 3B1C8098
        FilePath......: 3A552298
        OptionsSize...: 0
        LoadOptions...: 0
        ImageBase.....: 3D650000
        ImageSize.....: 5540
        CodeType......: EfiRuntimeServicesCode
        DataType......: EfiRuntimeServicesData
        Unload........: 0

Here is the output for the same handle with this series applied:

    D3: 3A552218
    LoadedImage
        Name..........: MicrocodeUpdate
        Revision......: 0x00001000
        ParentHandle..: 3A666398
        SystemTable...: 3D2A8F18
        DeviceHandle..: 3B1C8098
        FilePath......: FvFile(F3331DE6-4A55-44E4-B767-7453F7A1A021)
        OptionsSize...: 0
        LoadOptions...: 0
        ImageBase.....: 3D650000
        ImageSize.....: 5540
        CodeType......: EfiRuntimeServicesCode
        DataType......: EfiRuntimeServicesData
        Unload........: 0

Cc: Ruiyu Ni <ruiyu...@intel.com>
Cc: Jaben Carsey <jaben.car...@intel.com>

Jeff Westfahl (3):
  ShellPkg/HandleParsingLib: Show LoadedImageProtocol file path as text
  ShellPkg/HandleParsingLib: Open LoadedImageProtocol first
  ShellPkg/HandleParsingLib: Show LoadedImageProtocol file name

 .../UefiHandleParsingLib/UefiHandleParsingLib.c    | 111 +++++++++++++++++++--
 .../UefiHandleParsingLib/UefiHandleParsingLib.uni  |   4 +-
 2 files changed, 104 insertions(+), 11 deletions(-)

-- 
2.7.4

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to