Пример #1
0
 public List <Variable> GetLocals(ulong addr)
 {
     lock (mVariables)
     {
         mVariables.Clear();
         IMAGEHLP_STACK_FRAME stackFrame = new IMAGEHLP_STACK_FRAME();
         stackFrame.InstructionOffset = addr;
         // Always succeeds
         DbgHelp.SymSetContext(hProcess, ref stackFrame, IntPtr.Zero);
         DbgHelp.SymEnumSymbols(hProcess, 0, null, EnumLocals, IntPtr.Zero);
         return(new List <Variable>(mVariables));
     }
 }
Пример #2
0
 public static extern bool SymSetContext(IntPtr hProcess, ref IMAGEHLP_STACK_FRAME StackFrame, IntPtr ContextIgnored);
Пример #3
0
 public List<Variable> GetLocals(ulong addr)
 {
     lock (mVariables)
     {
         mVariables.Clear();
         IMAGEHLP_STACK_FRAME stackFrame = new IMAGEHLP_STACK_FRAME();
         stackFrame.InstructionOffset = addr;
         // Always succeeds
         DbgHelp.SymSetContext(hProcess, ref stackFrame, IntPtr.Zero);
         DbgHelp.SymEnumSymbols(hProcess, 0, null, EnumLocals, IntPtr.Zero);
         return new List<Variable>(mVariables);
     }
 }
Пример #4
0
 public extern static bool SymSetContext(IntPtr hProcess, ref IMAGEHLP_STACK_FRAME StackFrame, IntPtr ContextIgnored);