Ejemplo n.º 1
0
        public void FocusAddress(ulong eipToFocus)
        {
            KeyValuePair <string, int> fileline = mSymbolContext.GetFileAndLine(eipToFocus);

            mCurrentFile = fileline.Key;
            mCurrentLine = fileline.Value;
            TryToDisplaySource();
        }
Ejemplo n.º 2
0
 void RefreshProcThreads()
 {
     Processes.DataSource = new List <ProcessElement>(mProcesses.Values);
     foreach (ProcessElement pe in mProcesses.Values)
     {
         if (pe.Current)
         {
             List <ThreadElement> telist = new List <ThreadElement>(mProcesses[pe.ProcessId].Threads.Values);
             foreach (ThreadElement te in telist)
             {
                 KeyValuePair <string, int> fileLine = mSymcon.GetFileAndLine(te.Eip);
                 te.Description = fileLine.Key + ":" + fileLine.Value;
             }
             Threads.DataSource = telist;
         }
     }
 }
Ejemplo n.º 3
0
 void DumpStackFrames()
 {
     lock (mStackFramesToAdd)
     {
         foreach (ulong addr in mStackFramesToAdd)
         {
             KeyValuePair <string, int> sourceLine = mSymbols.GetFileAndLine(addr);
             if (sourceLine.Key != "unknown")
             {
                 StackFrames.Items.Add(string.Format("{0:X8} {1}:{2}", addr, sourceLine.Key, sourceLine.Value));
             }
             else
             {
                 StackFrames.Items.Add(string.Format("{0:X8} ?", addr));
             }
         }
         mStackFramesToAdd.Clear();
     }
 }