Exemplo n.º 1
0
        public InteractiveWindowFixture()
        {
            DumpInitialization initialization = new DumpInitialization("NativeDumpTest.x64.mdmp", "", FixSymbolPath(DumpInitialization.DefaultDumpPath));

            Application = Application.Launch(new System.Diagnostics.ProcessStartInfo()
            {
                FileName  = TestBase.GetAbsoluteBinPath("SharpDebug.UI.App.exe"),
                Arguments = $"-d \"{initialization.DumpPath}\" -p \"{initialization.SymbolPath}\"",
            });
            InteractiveWindow = new InteractiveWindowWrapper(Application.GetWindow(SharpDebug.UI.InteractiveWindow.WindowTitle, InitializeOption.NoCache));
        }
Exemplo n.º 2
0
        public NativeDumpTest(DumpInitialization dumpInitialization, bool executeCodeGen = true)
            : base(dumpInitialization)
        {
            ExecuteCodeGen = executeCodeGen;
            if (ExecuteCodeGen && !DumpInitialization.CodeGenExecuted)
            {
                InterpretInteractive($@"
var options = new ImportUserTypeOptions();
options.Modules.Add(""{DefaultModuleName}"");
options.UseILCodeWriter = {DumpInitialization.UseILCodeGen.ToString().ToLower()};
ImportUserTypes(options, true);
                    ");
                DumpInitialization.CodeGenExecuted = true;
            }
        }
Exemplo n.º 3
0
 public Cpp17Tests(DumpInitialization dumpInitialization, bool executeCodeGen = true)
     : base(dumpInitialization)
 {
 }