Exemplo n.º 1
0
 void WriteFilename(ModuleVM vm, string filename)
 {
     if (vm.Module.IsDynamic || vm.Module.IsInMemory)
     {
         filename = DebugOutputUtils.FilterName(filename, 300);
     }
     output.WriteFilename(filename);
 }
Exemplo n.º 2
0
        public void WriteName(ThreadVM vm)
        {
            var name = vm.Name;

            if (vm.UnknownName)
            {
                output.Write("???", TextTokenType.Error);
            }
            else if (name == null)
            {
                output.Write("<No Name>", TextTokenType.Text);
            }
            else
            {
                output.Write(DebugOutputUtils.FilterName(name, MAX_THREAD_NAME), TextTokenType.String);
            }
        }
Exemplo n.º 3
0
        public void WriteName(ThreadVM vm)
        {
            var name = vm.Name;

            if (vm.UnknownName)
            {
                output.Write(BoxedTextColor.Error, "???");
            }
            else if (name == null)
            {
                output.Write(BoxedTextColor.Text, dnSpy_Debugger_Resources.Thread_NoName);
            }
            else
            {
                output.Write(BoxedTextColor.String, DebugOutputUtils.FilterName(name, MAX_THREAD_NAME));
            }
        }
Exemplo n.º 4
0
        public void WriteName(ThreadVM vm)
        {
            var name = vm.Name;

            if (vm.UnknownName)
            {
                output.Write("???", TextTokenKind.Error);
            }
            else if (name == null)
            {
                output.Write(dnSpy_Debugger_Resources.Thread_NoName, TextTokenKind.Text);
            }
            else
            {
                output.Write(DebugOutputUtils.FilterName(name, MAX_THREAD_NAME), TextTokenKind.String);
            }
        }