EmulatorPkg/Unix/Host: Skip symbol unloading for stripped images

Skip symbol unloading for the PE/COFF images which dont have pdb area
when it built in RELEASE MODE.

Signed-off-by: Anandh krishna U <anandhkrishnau@ami.com>
This commit is contained in:
anandhkrishnau
2025-02-22 13:11:57 +05:30
committed by mergify[bot]
parent e2bb5b530b
commit 8f57cf0829

View File

@ -1217,9 +1217,9 @@ GdbScriptRemoveImage (
FILE *GdbTempFile;
//
// Need to skip .PDB files created from VC++
// Need to skip images which dont have pdb area and .PDB files created from VC++
//
if (IsPdbFile (ImageContext->PdbPointer)) {
if ((ImageContext->PdbPointer == NULL) || (IsPdbFile (ImageContext->PdbPointer))) {
return;
}