Beispiel #1
0
        internal static DebugSymbolReader GetReader(string aFilePath)
        {
            if (File.Exists(aFilePath))
            {
                if (mCurrentDebugSymbolReader != null && mCurrentFile == aFilePath)
                {
                    return(mCurrentDebugSymbolReader);
                }

                mCurrentDebugSymbolReader = new DebugSymbolReader(aFilePath);

                if (mCurrentDebugSymbolReader.mPEReader.HasMetadata)
                {
                    mCurrentFile = aFilePath;

                    return(mCurrentDebugSymbolReader);
                }
            }

            return(null);
        }
Beispiel #2
0
        public SequencePoint[] GetSequencePoints(string aAsmPathname, int aMethodToken, bool aFilterHiddenLines = false)
        {
            var xSeqPoints = DebugSymbolReader.GetSequencePoints(aAsmPathname, aMethodToken);

            return(xSeqPoints.ToArray());
        }