Skip to content

Commit 0cb7b82

Browse files
authored
Handle struct marshal stubs in ILStubManager::TraceManager. (#36249)
Fixes #36248
1 parent 751a10e commit 0cb7b82

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/coreclr/src/vm/stubmgr.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,6 +1844,12 @@ BOOL ILStubManager::TraceManager(Thread *thread,
18441844
trace->InitForUnmanaged(target);
18451845
}
18461846
#endif // FEATURE_COMINTEROP
1847+
else if (pStubMD->IsStructMarshalStub())
1848+
{
1849+
// There's no "target" for struct marshalling stubs
1850+
// so we have nowhere to tell the debugger to move the breakpoint.
1851+
return FALSE;
1852+
}
18471853
else
18481854
{
18491855
// This is either direct forward P/Invoke or a CLR-to-COM call, the argument is MD

0 commit comments

Comments
 (0)