Esempio n. 1
0
        //============================================================================
        // enumLinesCallback
        //============================================================================
        bool enumLinesCallback(ref DbgHelp.SRCCODE_INFO LineInfo, IntPtr UserContext)
        {
            //  UserContext;

            // gXDBFileBuilder.addLine((DWORD)LineInfo->Address, LineInfo->LineNumber, LineInfo->FileName);
            LineDesc ld = new LineDesc();

            ld.mAddress  = (uint)LineInfo.Address;
            ld.mFilename = LineInfo.FileName;
            ld.mLine     = (short)LineInfo.LineNumber;
            mLineDat.Add(ld);

            return(true);
        }
Esempio n. 2
0
        //============================================================================
        // enumLinesCallback
        //============================================================================
        bool enumLinesCallback(ref DbgHelp.SRCCODE_INFO LineInfo, IntPtr UserContext)
        {
            int index = mFileNames.IndexOf(LineInfo.FileName);

            if (index == -1)
            {
                index = mFileNames.Count;
                mFileNames.Add(LineInfo.FileName);
            }

            LineDesc ld = new LineDesc();

            ld.mAddress       = (uint)LineInfo.Address;
            ld.mFilenameIndex = (uint)index;
            ld.mLine          = (short)LineInfo.LineNumber;



            return(mAddressHash.addAddress((uint)LineInfo.Address, ld));
        }