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); }
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); }