Esempio n. 1
0
        public DebuggerTests()
        {
            DbgEngine.AddDllDirectory(@"C:\Debugging Tools for Windows (x64)\");
            IDebugClient client;
            var          iidIDebugClient = new Guid("27fe5639-8407-4f47-8364-ee118fb08ac8");
            int          res             = DbgEngine.DebugCreate(iidIDebugClient, out client);

            if (res != 0)
            {
                throw new Exception("Unable to create debugger");
            }
            _client6 = (IDebugClient6)client;
            var sym = (IDebugSymbols3)client;

            res = _client6.OpenDumpFileWide(@"D:\repos\PSExt\dmp\Sample.dmp", 0);
            if (res != 0)
            {
                throw new Exception("Unable to open dump");
            }
            var ctrl = (IDebugControl)_client6;

            res = ctrl.WaitForEvent(DEBUG_WAIT.DEFAULT, 5000);
            sym.SetSymbolPathWide(@"D:\repos\PSExt\dmp;c:\sym");
            res = sym.Reload("/f");
            if (res != 0)
            {
                throw new Exception("loading symbols fails");
            }
        }
Esempio n. 2
0
 public Debugger(IDebugClient client)
 {
     _client    = (IDebugClient6)client;
     _control5  = (IDebugControl5)client;
     _advanced2 = (IDebugAdvanced2)client;
     //_client.SetOutputCallbacksWide(new NullDebugOutput());
 }
Esempio n. 3
0
 public BreakpointManager(IDebugClient6 client)
 {
     _control5 = (IDebugControl5)client;
     _symbols  = new Symbols((IDebugSymbols3)client);
 }