Beispiel #1
0
        public bool LoadSymbols(IClrMethodBody body)
        {
            var entry = _symbolFile.GetMethodByToken(body.Method.MetadataToken);

            if (entry == null)
            {
                return(false);
            }

            var points = ReadSequencePoints(entry);

            body.SetSequencePoints(points);
            ReadLocals(entry, body);

            return(true);
        }
Beispiel #2
0
        public bool LoadSymbols(IClrMethodBody body)
        {
            var token = body.Method.MetadataToken;

            PdbFunction function;

            if (!_functions.TryGetValue((uint)token, out function))
            {
                return(false);
            }

            var points = ReadSequencePoints(function);

            body.SetSequencePoints(points);

            ReadLocals(function.scopes, body);

            return(true);
        }