Skip to content

Commit ed3721b

Browse files
Fix function pointer as fields inspection (#83981)
This was missed when C# function pointers support was added to the runtime. The current fix is reporting all functions pointers as `IntPtr` type. It should be possible in a future update to properly represent a more accurate type for the function pointer.
1 parent 5bd2ed3 commit ed3721b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/coreclr/vm/siginfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,8 +1648,8 @@ TypeHandle SigPointer::GetTypeHandleThrowing(
16481648
// Find an existing function pointer or make a new one
16491649
thRet = ClassLoader::LoadFnptrTypeThrowing((BYTE) uCallConv, cArgs, retAndArgTypes, fLoadTypes, level);
16501650
#else
1651-
DacNotImpl();
1652-
thRet = TypeHandle();
1651+
// Function pointers are interpreted as IntPtr to the debugger.
1652+
thRet = TypeHandle(CoreLibBinder::GetElementType(ELEMENT_TYPE_I));
16531653
#endif
16541654
break;
16551655
}

0 commit comments

Comments
 (0)