summaryrefslogtreecommitdiffstats
path: root/EmulatorPkg
diff options
context:
space:
mode:
authorAshraf Ali <ashraf.ali.s@intel.com>2024-08-18 21:08:16 +0530
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-10-28 17:22:56 +0000
commit2d10dc1fb5a12a186b4401ce42fdd3f38a614037 (patch)
treee480b3cb6d0556aadfa91633b274158b61b972d7 /EmulatorPkg
parent4de80843a74475aef3ac47127cec0e52c1f5aa46 (diff)
downloadedk2-2d10dc1fb5a12a186b4401ce42fdd3f38a614037.tar.gz
edk2-2d10dc1fb5a12a186b4401ce42fdd3f38a614037.tar.bz2
edk2-2d10dc1fb5a12a186b4401ce42fdd3f38a614037.zip
EmulatorPkg/Win/Host: Source level debugging on already loaded DLL
Signed-off-by: Ashraf Ali <ashraf.ali.s@intel.com>
Diffstat (limited to 'EmulatorPkg')
-rw-r--r--EmulatorPkg/Win/Host/WinHost.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/EmulatorPkg/Win/Host/WinHost.c b/EmulatorPkg/Win/Host/WinHost.c
index 193a947fbd..ee834dd1a8 100644
--- a/EmulatorPkg/Win/Host/WinHost.c
+++ b/EmulatorPkg/Win/Host/WinHost.c
@@ -1131,15 +1131,9 @@ PeCoffLoaderRelocateImageExtraAction (
if ((Library != NULL) && (DllEntryPoint != NULL)) {
Status = AddModHandle (ImageContext, Library);
- if (Status == EFI_ALREADY_STARTED) {
+ if ((Status == EFI_SUCCESS) || (Status == EFI_ALREADY_STARTED)) {
//
- // If the DLL has already been loaded before, then this instance of the DLL can not be debugged.
- //
- ImageContext->PdbPointer = NULL;
- SecPrint ("WARNING: DLL already loaded. No source level debug %S.\n\r", DllFileName);
- } else {
- //
- // This DLL is not already loaded, so source level debugging is supported.
+ // This DLL is either not loaded or already started, so source level debugging is supported.
//
ImageContext->EntryPoint = (EFI_PHYSICAL_ADDRESS)(UINTN)DllEntryPoint;
SecPrint ("LoadLibraryEx (\n\r %S,\n\r NULL, DONT_RESOLVE_DLL_REFERENCES)\n\r", DllFileName);