Exemple #1
0
        public override ClrMethod?GetMethodByInstructionPointer(ulong ip)
        {
            ulong md = _helpers.GetMethodDesc(ip);

            if (md == 0)
            {
                return(null);
            }

            return(GetMethodByHandle(md));
        }
Exemple #2
0
        public override ClrMethod?GetMethodByInstructionPointer(ulong ip)
        {
            ulong md = _helpers.GetMethodDesc(ip);

            if (md == 0)
            {
                if (!DacLibrary.SOSDacInterface.GetCodeHeaderData(ip, out var codeHeaderData))
                {
                    return(null);
                }

                if ((md = codeHeaderData.MethodDesc) == 0)
                {
                    return(null);
                }
            }

            return(GetMethodByHandle(md));
        }