Using sos, I can get the method table entry list for a particular class:
!DumpMT -MD 1d3c58 PDB symbol for mscorwks.dll not loaded EEClass: 001d195c Module: 001d2f2c Name: Class1.B mdToken: 02000005 BaseSize: 0xc ComponentSize: 0x0 Number of IFaces in IFaceMap: 0 Slots in VTable: 7 -------------------------------------- MethodDesc Table Entry MethodDesc JIT Name 691f6a90 69071248 PreJIT System.Object.ToString() 691f6ab0 69071250 PreJIT System.Object.Equals(System.Object) 691f6b20 69071280 PreJIT System.Object.GetHashCode() 692674c0 690712a4 PreJIT System.Object.Finalize() 001dc088 001d3c34 NONE Class1.B.M() 001dc090 001d3c40 NONE Class1.B.N() 001dc098 001d3c4c JIT Class1.B..ctor()
But I can't figure out how sos can match up a table entry with a MethodDesc
- having a poke around the method table in memory only gives the Entry values, which point to the JIT stub. I can't figure out how you can get the MethodDesc
s from there. Anyone have any ideas?