Inheritance: IDebugOutputCallbacksWide
        private DataTarget CreateDbgEngDataTargetImpl()
        {
            if (String.IsNullOrEmpty(DumpFile))
            {
                throw new InvalidOperationException("DbgEng targets can be created only for dump files at this point.");
            }

            var target = DataTarget.LoadCrashDump(DumpFile, CrashDumpReader.DbgEng);

            target.AppendSymbolPath(SymbolPath);

            var outputCallbacks       = new OutputCallbacks(this);
            msos_IDebugClient5 client = (msos_IDebugClient5)target.DebuggerInterface;

            HR.Verify(client.SetOutputCallbacksWide(outputCallbacks));

            return(target);
        }
Beispiel #2
0
        private DataTarget CreateDbgEngDataTargetImpl()
        {
            if (String.IsNullOrEmpty(DumpFile))
            {
                throw new InvalidOperationException("DbgEng targets can be created only for dump files at this point.");
            }

            var target = DataTarget.LoadCrashDump(DumpFile, CrashDumpReader.DbgEng);

            target.SymbolLocator.SymbolPath = SymbolPath;
            ((IDebugSymbols)target.DebuggerInterface).SetSymbolPath(SymbolPath);
            if (DisplayDiagnosticInformation)
            {
                ((IDebugControl)target.DebuggerInterface).Execute(DEBUG_OUTCTL.NOT_LOGGED, "!sym noisy", DEBUG_EXECUTE.NOT_LOGGED);
            }
            ((IDebugControl)target.DebuggerInterface).Execute(DEBUG_OUTCTL.NOT_LOGGED, ".reload", DEBUG_EXECUTE.NOT_LOGGED);

            var           outputCallbacks = new OutputCallbacks(this);
            IDebugClient5 client          = (IDebugClient5)target.DebuggerInterface;

            HR.Verify(client.SetOutputCallbacksWide(outputCallbacks));

            return(target);
        }
        private DataTarget CreateDbgEngDataTargetImpl()
        {
            if (String.IsNullOrEmpty(DumpFile))
                throw new InvalidOperationException("DbgEng targets can be created only for dump files at this point.");

            var target = DataTarget.LoadCrashDump(DumpFile, CrashDumpReader.DbgEng);
            target.SymbolLocator.SymbolPath = SymbolPath;

            var outputCallbacks = new OutputCallbacks(this);
            IDebugClient5 client = (IDebugClient5)target.DebuggerInterface;
            HR.Verify(client.SetOutputCallbacksWide(outputCallbacks));

            return target;
        }
        private DataTarget CreateDbgEngDataTargetImpl()
        {
            if (String.IsNullOrEmpty(DumpFile))
                throw new InvalidOperationException("DbgEng targets can be created only for dump files at this point.");

            var target = DataTarget.LoadCrashDump(DumpFile, CrashDumpReader.DbgEng);
            target.SymbolLocator.SymbolPath = SymbolPath;
            ((IDebugSymbols)target.DebuggerInterface).SetSymbolPath(SymbolPath);
            if (DisplayDiagnosticInformation)
            {
                ((IDebugControl)target.DebuggerInterface).Execute(DEBUG_OUTCTL.NOT_LOGGED, "!sym noisy", DEBUG_EXECUTE.NOT_LOGGED);
            }
            ((IDebugControl)target.DebuggerInterface).Execute(DEBUG_OUTCTL.NOT_LOGGED, ".reload", DEBUG_EXECUTE.NOT_LOGGED);

            var outputCallbacks = new OutputCallbacks(this);
            IDebugClient5 client = (IDebugClient5)target.DebuggerInterface;
            HR.Verify(client.SetOutputCallbacksWide(outputCallbacks));

            return target;
        }