Skip to content

Commit 26b8e5d

Browse files
authored
Fix CORDBG_E_MODULE_NOT_LOADED error in func-eval (#121057)
Correctly initialize vmModule in FuncEvalComplete in the debugger Fixes #120848
1 parent e317e1e commit 26b8e5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/coreclr/debug/ee/debugger.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11651,6 +11651,7 @@ void Debugger::TypeHandleToBasicTypeInfo(AppDomain *pAppDomain, TypeHandle th, D
1165111651
res->vmTypeHandle = WrapTypeHandle(th);
1165211652
res->metadataToken = mdTokenNil;
1165311653
res->vmDomainAssembly.SetRawPtr(NULL);
11654+
res->vmModule.SetRawPtr(NULL);
1165411655
break;
1165511656

1165611657
case ELEMENT_TYPE_CLASS:
@@ -11661,13 +11662,15 @@ void Debugger::TypeHandleToBasicTypeInfo(AppDomain *pAppDomain, TypeHandle th, D
1166111662
res->metadataToken = th.GetCl();
1166211663
DebuggerModule * pDModule = LookupOrCreateModule(th.GetModule());
1166311664
res->vmDomainAssembly.SetRawPtr((pDModule ? pDModule->GetDomainAssembly() : NULL));
11665+
res->vmModule.SetRawPtr(NULL);
1166411666
break;
1166511667
}
1166611668

1166711669
default:
1166811670
res->vmTypeHandle = VMPTR_TypeHandle::NullPtr();
1166911671
res->metadataToken = mdTokenNil;
1167011672
res->vmDomainAssembly.SetRawPtr(NULL);
11673+
res->vmModule.SetRawPtr(NULL);
1167111674
break;
1167211675
}
1167311676
return;

0 commit comments

Comments
 (0)