L0Debug Win: Always generate module create/destroy events

We have to always generate module create/destroy events to give
debugger a chance to insert bp, read/write debuggee memory  etc
even there is no debug data was generated. In this case ELF will not be
reported to debugger, just ISA GpuVA

Related-To: NEO-6723

Signed-off-by: Igor Venevtsev <igor.venevtsev@intel.com>
This commit is contained in:
Igor Venevtsev
2022-08-23 12:02:10 +00:00
committed by Compute-Runtime-Automation
parent aa59ee94b2
commit d40173e47a
6 changed files with 56 additions and 33 deletions

View File

@@ -169,8 +169,8 @@ void DebuggerL0::notifyModuleDestroy(uint64_t moduleLoadAddress) {
escapeInfo.Header.Size = sizeof(escapeInfo) - sizeof(escapeInfo.Header);
escapeInfo.EscapeOperation = KM_ESCAPE_EUDBG_UMD_MODULE_CREATE_NOTIFY;
escapeInfo.KmEuDbgUmdCreateModuleNotification.IsCreate = false;
escapeInfo.KmEuDbgUmdCreateModuleNotification.Modulesize = 0x1000;
escapeInfo.KmEuDbgUmdCreateModuleNotification.hElfAddressPtr = uint64_t(-1);
escapeInfo.KmEuDbgUmdCreateModuleNotification.Modulesize = 0;
escapeInfo.KmEuDbgUmdCreateModuleNotification.hElfAddressPtr = 0;
escapeInfo.KmEuDbgUmdCreateModuleNotification.LoadAddress = moduleLoadAddress;
auto wddm = device->getRootDeviceEnvironment().osInterface->getDriverModel()->as<NEO::Wddm>();