From d03abbe470742f43a9e9ac9ef8f996b39978bc54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Srbeck=C3=BD?= Date: Thu, 3 Jul 2008 02:17:15 +0000 Subject: [PATCH] Reformatted the output of debugger tests: properties are outputted as attributes rather then elements git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3161 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../Project/Src/DebuggerTestsBase.cs | 57 +- .../Project/Src/TestPrograms/ArrayValue.cs | 303 ++--- .../Project/Src/TestPrograms/Break.cs | 7 +- .../Project/Src/TestPrograms/Breakpoint.cs | 47 +- .../Project/Src/TestPrograms/Callstack.cs | 103 +- .../Src/TestPrograms/DebuggerAttributes.cs | 13 +- .../Project/Src/TestPrograms/DefinedTypes.cs | 77 +- .../Project/Src/TestPrograms/Exception.cs | 7 +- .../Src/TestPrograms/ExceptionCustom.cs | 7 +- .../TestPrograms/FunctionArgumentVariables.cs | 423 +++---- .../Src/TestPrograms/FunctionLifetime.cs | 127 +- .../TestPrograms/FunctionLocalVariables.cs | 154 +-- .../TestPrograms/FunctionVariablesLifetime.cs | 587 ++++----- .../Project/Src/TestPrograms/Generics.cs | 1081 +++++++++-------- .../Project/Src/TestPrograms/HelloWorld.cs | 13 +- .../Src/TestPrograms/MainThreadExit.cs | 149 +-- .../Src/TestPrograms/MetadataIdentity.cs | 7 +- .../Src/TestPrograms/PrimitiveValue.cs | 381 +++--- .../Project/Src/TestPrograms/SetIP.cs | 13 +- .../Project/Src/TestPrograms/SimpleProgram.cs | 7 +- .../Project/Src/TestPrograms/StackOverflow.cs | 25 +- .../Project/Src/TestPrograms/Stepping.cs | 13 +- .../TestPrograms/TerminatePausedProcess.cs | 11 +- .../TestPrograms/TerminateRunningProcess.cs | 11 +- .../Project/Src/TestPrograms/ValueType.cs | 131 +- .../Project/Src/TestPrograms/_Template.cs | 7 +- 26 files changed, 1988 insertions(+), 1773 deletions(-) diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/DebuggerTestsBase.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/DebuggerTestsBase.cs index 1d48fa0370..af425ced19 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/DebuggerTestsBase.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/DebuggerTestsBase.cs @@ -86,7 +86,12 @@ namespace Debugger.Tests string endMark = "#endif // EXPECTED_OUTPUT"; MemoryStream newXmlStream = new MemoryStream(); - testDoc.Save(newXmlStream); + XmlWriterSettings settings = new XmlWriterSettings(); + settings.Encoding = Encoding.UTF8; + settings.Indent = true; + settings.NewLineOnAttributes = true; + XmlWriter writer = XmlTextWriter.Create(newXmlStream, settings); + testDoc.Save(writer); newXmlStream.Seek(0, SeekOrigin.Begin); string actualXml = new StreamReader(newXmlStream).ReadToEnd() + "\r\n"; @@ -140,7 +145,7 @@ namespace Debugger.Tests LogEvent("LogMessage", e.Message.Replace("\r",@"\r").Replace("\n",@"\n")); }; process.ModuleLoaded += delegate(object sender, ModuleEventArgs e) { - LogEvent("ModuleLoaded", e.Module.Filename).SetAttribute("symbols", e.Module.SymbolsLoaded.ToString()); + LogEvent("ModuleLoaded", e.Module.Filename + (e.Module.SymbolsLoaded ? " (Has symbols)" : " (No symbols)")); }; process.Paused += delegate(object sender, ProcessEventArgs e) { LogEvent("DebuggingPaused", e.Process.PauseSession.PausedReason.ToString()); @@ -174,7 +179,7 @@ namespace Debugger.Tests public void ObjectDump(object obj) { - ObjectDump("Object", obj); + Serialize(testNode, obj, 16, new List()); } public void ObjectDump(string name, object obj) @@ -220,16 +225,16 @@ namespace Debugger.Tests container.AppendChild(doc.CreateTextNode("null")); return; } - if (maxDepth == -1) { - container.AppendChild(doc.CreateTextNode(obj.ToString())); - container.SetAttribute("warning", "max depth reached"); + container.AppendChild(doc.CreateTextNode("{Max depth reached}")); return; } - if (parents.Contains(obj)) { + container.AppendChild(doc.CreateTextNode("{Recusion detected}")); + return; + } + if (obj.GetType().Namespace == "System") { container.AppendChild(doc.CreateTextNode(obj.ToString())); - container.SetAttribute("warning", "recusion detected"); return; } @@ -238,18 +243,10 @@ namespace Debugger.Tests Type type = obj.GetType(); - if (type.Namespace == "System") { - container.AppendChild(doc.CreateTextNode(obj.ToString())); - return; - } - - - container.SetAttribute("Type", type.Name); - try { - container.SetAttribute("ToString", obj.ToString()); - } catch (System.Exception e) { - while(e.InnerException != null) e = e.InnerException; - container.SetAttribute("ToString_exception", e.Message); + if (!(obj is IEnumerable)) { + XmlElement newContainer = doc.CreateElement(XmlConvert.EncodeName(type.Name)); + container.AppendChild(newContainer); + container = newContainer; } List properties = new List(); @@ -262,32 +259,32 @@ namespace Debugger.Tests if (property.GetGetMethod().GetParameters().Length > 0) continue; if (property.GetCustomAttributes(typeof(Debugger.Tests.IgnoreAttribute), true).Length > 0) continue; - XmlElement propertyNode = doc.CreateElement(property.Name); - container.AppendChild(propertyNode); - object val; try { val = property.GetValue(obj, new object[] {}); } catch (System.Exception e) { while(e.InnerException != null) e = e.InnerException; - propertyNode.SetAttribute("exception", e.Message); - continue; + val = "{Exception: " + e.Message + "}"; } - if (val == null) { - propertyNode.AppendChild(doc.CreateTextNode("null")); - } else if (ShouldExpandProperty(property)) { + if (val == null) val = "null"; + + container.SetAttribute(property.Name, val.ToString()); + + if (ShouldExpandProperty(property)) { + XmlElement propertyNode = doc.CreateElement(property.Name); + container.AppendChild(propertyNode); Serialize(propertyNode, val, maxDepth - 1, parents); - } else { - propertyNode.AppendChild(doc.CreateTextNode(val.ToString())); } } // Save all objects of an enumerable object if (obj is IEnumerable) { + int id = 1; foreach(object enumObject in (IEnumerable)obj) { XmlElement enumRoot = doc.CreateElement("Item"); container.AppendChild(enumRoot); Serialize(enumRoot, enumObject, maxDepth - 1, parents); + id++; } } } diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ArrayValue.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ArrayValue.cs index 99cf7b4c1a..24ff761d35 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ArrayValue.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ArrayValue.cs @@ -49,160 +49,177 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - ArrayValue.exe + mscorlib.dll (No symbols) + ArrayValue.exe (Has symbols) Break - - [5] - 5 - 1 - {System.Int32[]} - array - False - True - False - False - False - False - - System.Int32[] + + - - - - - - 0 - array[0] - False - False - True - False - False - True - 0 - System.Int32 + + + - - - - - 1 - array[1] - False - False - True - False - False - True - 1 - System.Int32 + + - - - - - 2 - array[2] - False - False - True - False - False - True - 2 - System.Int32 + + - - - - - 3 - array[3] - False - False - True - False - False - True - 3 - System.Int32 + + - - - - - 4 - array[4] - False - False - True - False - False - True - 4 - System.Int32 + + - - - - null - System.Object - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - True - False - False - False - False - False - null - mscorlib.dll + + + + + + + null + + + - System.Array - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - True - False - False - False - False - False - null - mscorlib.dll - - System.Int32[] - True - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - True - False - False - False - False - False - False - System.Array - + - - - - - 5 - array.Length - False - False - True - False - False - True - 5 - System.Int32 + + diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Break.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Break.cs index f9b3a0abdd..f44ee1901b 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Break.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Break.cs @@ -36,10 +36,11 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - Break.exe + mscorlib.dll (No symbols) + Break.exe (Has symbols) Break diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Breakpoint.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Breakpoint.cs index 4624fd55fb..c8e22a2b80 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Breakpoint.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Breakpoint.cs @@ -51,37 +51,36 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - Breakpoint.exe - System.dll + mscorlib.dll (No symbols) + Breakpoint.exe (Has symbols) + System.dll (No symbols) Break - - null - 0 - True - Breakpoint.cs - True - 18 - Breakpoint.cs:18,4-18,49 - - System.Configuration.dll - System.Xml.dll + + System.Configuration.dll (No symbols) + System.Xml.dll (No symbols) Main 1\r\n Breakpoint Main 2\r\n Break - - null - 0 - True - Breakpoint.cs - False - 18 - Breakpoint.cs:18,4-18,49 - + #endif // EXPECTED_OUTPUT diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Callstack.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Callstack.cs index 3e2c56b310..54f083c7b6 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Callstack.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Callstack.cs @@ -52,65 +52,72 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - Callstack.exe + mscorlib.dll (No symbols) + Callstack.exe (Has symbols) Break - - - 0 - 0 - False - True - Sub2 - Callstack.cs:26,4-26,40 + + + - - 0 - 1 - False - True - Sub1 - Callstack.cs:21,4-21,11 + + - - 0 - 2 - False - True - Main - Callstack.cs:16,4-16,11 + + StepComplete - - - 0 - 0 - False - True - Sub1 - Callstack.cs:21,4-21,11 + + + - - 0 - 1 - False - True - Main - Callstack.cs:16,4-16,11 + + StepComplete - - - 0 - 0 - False - True - Main - Callstack.cs:16,4-16,11 + + + diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebuggerAttributes.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebuggerAttributes.cs index aa616d1ea5..7ba859dd23 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebuggerAttributes.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DebuggerAttributes.cs @@ -66,13 +66,14 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - DebuggerAttributes.exe - System.dll - System.Configuration.dll - System.Xml.dll + mscorlib.dll (No symbols) + DebuggerAttributes.exe (Has symbols) + System.dll (No symbols) + System.Configuration.dll (No symbols) + System.Xml.dll (No symbols) Start\r\n Break StepComplete diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DefinedTypes.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DefinedTypes.cs index c77519d662..5685b35015 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DefinedTypes.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/DefinedTypes.cs @@ -49,50 +49,53 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - DefinedTypes.exe + mscorlib.dll (No symbols) + DefinedTypes.exe (Has symbols) Break - - 4 - 3 + Debugger.Tests.TestPrograms.DefinedTypes_Class Debugger.Tests.TestPrograms.DefinedTypes_Struct Debugger.Tests.TestPrograms.DefinedTypes_GenericClass`2 - - 4 - 2 - - System.Object - Debugger.Tests.TestPrograms.DefinedTypes_Class - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - True - False - False - False - False - False - null - DefinedTypes.exe + + + - - System.ValueType - Debugger.Tests.TestPrograms.DefinedTypes_Struct - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - False - False - False - False - False - True - null - DefinedTypes.exe + + diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Exception.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Exception.cs index 7ee9b6eb68..187e351c6c 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Exception.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Exception.cs @@ -50,10 +50,11 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - Exception.exe + mscorlib.dll (No symbols) + Exception.exe (Has symbols) Break test diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ExceptionCustom.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ExceptionCustom.cs index 99a13a89aa..c9d11daa19 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ExceptionCustom.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ExceptionCustom.cs @@ -44,10 +44,11 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - ExceptionCustom.exe + mscorlib.dll (No symbols) + ExceptionCustom.exe (Has symbols) test Exception diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/FunctionArgumentVariables.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/FunctionArgumentVariables.cs index e43329f2ce..bd0dc861ed 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/FunctionArgumentVariables.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/FunctionArgumentVariables.cs @@ -87,234 +87,249 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - FunctionArgumentVariables.exe + mscorlib.dll (No symbols) + FunctionArgumentVariables.exe (Has symbols) Break Break - - - - - - 1 - i - False - False - True - False - False - True - 1 - System.Int32 + + + - - - - - A - s - False - False - False - False - False - True - A - System.String + + - - - - - null - s_null - False - False - False - True - False - False - - System.Object + + - - - - - 2 - ref_i - False - False - True - False - False - True - 2 - System.Int32 + + - - - - - 3 - out_i - False - False - True - False - False - True - 3 - System.Int32 + + - - - - - 0 - out_i2 - False - False - True - False - False - True - 0 - System.Int32 + + - - - - - B - ref_s - False - False - False - False - False - True - B - System.String + + - - - - - {System.Nullable<System.Int32>} - iNull - False - False - False - False - True - False - - System.Nullable<System.Int32> + + - - - - - {System.Nullable<System.Int32>} - iNull_null - False - False - False - False - True - False - - System.Nullable<System.Int32> + + Break - - - [0] - 0 - 1 - {System.String[]} - args - False - True - False - False - False - False - - System.String[] + + + Break - - - [1] - 1 - 1 - {System.String[]} - args - False - True - False - False - False - False - - System.String[] + + + Break - - - [2] - 2 - 1 - {System.String[]} - args - False - True - False - False - False - False - - System.String[] + + + Break - - - - - - 1 - i - False - False - True - False - False - True - 1 - System.Int32 + + + - - - - - A - s - False - False - False - False - False - True - A - System.String + + diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/FunctionLifetime.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/FunctionLifetime.cs index e6ed57d02c..9c7ada1b1d 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/FunctionLifetime.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/FunctionLifetime.cs @@ -65,77 +65,86 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - FunctionLifetime.exe + mscorlib.dll (No symbols) + FunctionLifetime.exe (Has symbols) Break - - 1 - 0 - False - True - Function - FunctionLifetime.cs:22,4-22,40 + + Break - - - 0 - True - True - Function - + + - - 0 - 0 - False - True - SubFunction - FunctionLifetime.cs:29,4-29,40 + + Break - - - 0 - True - True - Function - + + - - 1 - 0 - False - True - Function - FunctionLifetime.cs:24,4-24,40 + + Break -
- 0 - 0 - False - True - Main - FunctionLifetime.cs:17,4-17,40 +
+
- - - 0 - True - True - Function - + + - - 0 - 0 - False - True - Main - FunctionLifetime.cs:17,4-17,40 + + diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/FunctionLocalVariables.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/FunctionLocalVariables.cs index f27b60229f..14685fe6a4 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/FunctionLocalVariables.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/FunctionLocalVariables.cs @@ -43,86 +43,92 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - FunctionLocalVariables.exe + mscorlib.dll (No symbols) + FunctionLocalVariables.exe (Has symbols) Break - - - - - - 0 - i - False - False - True - False - False - True - 0 - System.Int32 + + + - - - - - S - s - False - False - False - False - False - True - S - System.String + + - - [1] - 1 - 1 - {System.String[]} - args - False - True - False - False - False - False - - System.String[] + + - - - - - null - n - False - False - False - True - False - False - - System.Object + + - - - - - {System.Object} - o - False - False - False - False - True - False - - System.Object + + diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/FunctionVariablesLifetime.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/FunctionVariablesLifetime.cs index 74f6924dee..2ae71336f5 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/FunctionVariablesLifetime.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/FunctionVariablesLifetime.cs @@ -93,314 +93,335 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - FunctionVariablesLifetime.exe + mscorlib.dll (No symbols) + FunctionVariablesLifetime.exe (Has symbols) Break - - - - - 1 - argument - False - False - True - False - False - True - 1 - System.Int32 + + - - - - - 2 - local - False - False - True - False - False - True - 2 - System.Int32 + + - <_x0040_class Type="Value" ToString="this.class = 3"> - - - - 3 - this.class - False - False - True - False - False - True - 3 - System.Int32 + <_x0040_class> + Break - - - - - - argument - True - - - - - - - System.Int32 + + - - - - - - local - True - - - - - - - System.Int32 + + - <_x0040_class Type="Value" ToString_exception="Value has expired"> - - - - - this.class - True - - - - - - - System.Int32 + <_x0040_class> + - - - - - 4 - localInSubFunction - False - False - True - False - False - True - 4 - System.Int32 + + Break - - - - - - argument - True - - - - - - - System.Int32 + + - - - - - - local - True - - - - - - - System.Int32 + + - <_x0040_class Type="Value" ToString_exception="Value has expired"> - - - - - this.class - True - - - - - - - System.Int32 + <_x0040_class> + - - - - - - localInSubFunction - True - - - - - - - System.Int32 + + Break - - - - - - argument - True - - - - - - - System.Int32 + + - - - - - - local - True - - - - - - - System.Int32 + + - <_x0040_class Type="Value" ToString_exception="Value has expired"> - - - - - this.class - True - - - - - - - System.Int32 + <_x0040_class> + - - - - - - localInSubFunction - True - - - - - - - System.Int32 + + - - - - - 4 - localInSubFunction - False - False - True - False - False - True - 4 - System.Int32 + + Break - - - - - - argument - True - - - - - - - System.Int32 + + - - - - - - local - True - - - - - - - System.Int32 + + - <_x0040_class Type="Value" ToString_exception="Value has expired"> - - - - - this.class - True - - - - - - - System.Int32 + <_x0040_class> + - - - - - - localInSubFunction - True - - - - - - - System.Int32 + + diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Generics.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Generics.cs index 4a83b42f2b..d66f5d3409 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Generics.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Generics.cs @@ -126,552 +126,627 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - Generics.exe + mscorlib.dll (No symbols) + Generics.exe (Has symbols) Break - - 2 - 0 - False - True - - - System.Object - Debugger.Tests.TestPrograms.GenericClass<System.Int32,System.String> - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - True - True - False - False - False - False - null - Generics.exe - - Debugger.Tests.TestPrograms.GenericClass<System.Int32,System.String>.Metod - False - True - False - False - Generics.exe - Metod - - Generics.cs:48,4-48,40 + + + + + + + + + + - - - - - - 1 - v - False - False - True - False - False - True - 1 - System.Int32 + + + - - - - - 1! - k - False - False - False - False - False - True - 1! - System.String + + Break - - 2 - 0 - False - True - - - System.Object - Debugger.Tests.TestPrograms.GenericClass<System.Int32,System.String> - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - True - True - False - False - False - False - null - Generics.exe - - Debugger.Tests.TestPrograms.GenericClass<System.Int32,System.String>.GenericMethod - False - True - False - False - Generics.exe - GenericMethod - - Generics.cs:54,4-54,40 + + + + + + + + + + - - - - - - 2 - v - False - False - True - False - False - True - 2 - System.Int32 + + + - - - - - 2! - k - False - False - False - False - False - True - 2! - System.String + + Break - - 2 - 0 - False - True - - - System.Object - Debugger.Tests.TestPrograms.GenericClass<System.Int32,System.String> - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - True - True - False - False - False - False - null - Generics.exe - - Debugger.Tests.TestPrograms.GenericClass<System.Int32,System.String>.StaticMetod - False - True - False - True - Generics.exe - StaticMetod - - Generics.cs:60,4-60,40 + + + + + + + + + + - - - - - - 3 - v - False - False - True - False - False - True - 3 - System.Int32 + + + - - - - - 3! - k - False - False - False - False - False - True - 3! - System.String + + Break - - 2 - 0 - False - True - - - System.Object - Debugger.Tests.TestPrograms.GenericClass<System.Int32,System.String> - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - True - True - False - False - False - False - null - Generics.exe - - Debugger.Tests.TestPrograms.GenericClass<System.Int32,System.String>.StaticGenericMethod - False - True - False - True - Generics.exe - StaticGenericMethod - - Generics.cs:66,4-66,40 + + + + + + + + + + - - - - - - 4 - v - False - False - True - False - False - True - 4 - System.Int32 + + + - - - - - 4! - k - False - False - False - False - False - True - 4! - System.String + + Break - - 2 - 0 - False - True - - - System.ValueType - Debugger.Tests.TestPrograms.GenericStruct<System.Int32,System.String> - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - False - True - False - False - False - True - null - Generics.exe - - Debugger.Tests.TestPrograms.GenericStruct<System.Int32,System.String>.Metod - False - True - False - False - Generics.exe - Metod - - Generics.cs:75,4-75,40 + + + + + + + + + + - - - - - - 5 - v - False - False - True - False - False - True - 5 - System.Int32 + + + - - - - - 5! - k - False - False - False - False - False - True - 5! - System.String + + Break - - 2 - 0 - False - True - - - System.ValueType - Debugger.Tests.TestPrograms.GenericStruct<System.Int32,System.String> - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - False - True - False - False - False - True - null - Generics.exe - - Debugger.Tests.TestPrograms.GenericStruct<System.Int32,System.String>.GenericMethod - False - True - False - False - Generics.exe - GenericMethod - - Generics.cs:81,4-81,40 + + + + + + + + + + - - - - - - 6 - v - False - False - True - False - False - True - 6 - System.Int32 + + + - - - - - 6! - k - False - False - False - False - False - True - 6! - System.String + + Break - - 2 - 0 - False - True - - - System.ValueType - Debugger.Tests.TestPrograms.GenericStruct<System.Int32,System.String> - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - False - True - False - False - False - True - null - Generics.exe - - Debugger.Tests.TestPrograms.GenericStruct<System.Int32,System.String>.StaticMetod - False - True - False - True - Generics.exe - StaticMetod - - Generics.cs:87,4-87,40 + + + + + + + + + + - - - - - - 7 - v - False - False - True - False - False - True - 7 - System.Int32 + + + - - - - - 7! - k - False - False - False - False - False - True - 7! - System.String + + Break - - 2 - 0 - False - True - - - System.ValueType - Debugger.Tests.TestPrograms.GenericStruct<System.Int32,System.String> - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - False - True - False - False - False - True - null - Generics.exe - - Debugger.Tests.TestPrograms.GenericStruct<System.Int32,System.String>.StaticGenericMethod - False - True - False - True - Generics.exe - StaticGenericMethod - - Generics.cs:93,4-93,40 + + + + + + + + + + - - - - - - 8 - v - False - False - True - False - False - True - 8 - System.Int32 + + + - - - - - 8! - k - False - False - False - False - False - True - 8! - System.String + + Break - - - - - 0 - gClass.Prop - False - False - True - False - False - True - 0 - System.Int32 + + - - - - - 0 - Debugger.Tests.TestPrograms.GenericClass<System.Int32,System.String>.StaticProp - False - False - True - False - False - True - 0 - System.Int32 + + diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/HelloWorld.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/HelloWorld.cs index 0987752fb8..19a1c1a98d 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/HelloWorld.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/HelloWorld.cs @@ -38,13 +38,14 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - HelloWorld.exe - System.dll - System.Configuration.dll - System.Xml.dll + mscorlib.dll (No symbols) + HelloWorld.exe (Has symbols) + System.dll (No symbols) + System.Configuration.dll (No symbols) + System.Xml.dll (No symbols) Hello world!\r\n diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/MainThreadExit.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/MainThreadExit.cs index 2497e88644..bf9bfc0621 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/MainThreadExit.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/MainThreadExit.cs @@ -53,86 +53,89 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - MainThreadExit.exe + mscorlib.dll (No symbols) + MainThreadExit.exe (Has symbols) Break - - 2 - - null - False - 0 - False - True - True - False - Debugger.Tests.TestPrograms.MainThreadExit.Main - Debugger.Tests.TestPrograms.MainThreadExit.Main - - - Debugger.Tests.TestPrograms.MainThreadExit.Main - Normal - ? = {System.Threading.Thread} - Debugger.Tests.TestPrograms.MainThreadExit.Main - False + + + - - null - False - 0 - False - True - True - False - System.Threading.WaitHandle.WaitOne - Debugger.Tests.TestPrograms.MainThreadExit.WaitForALongTime - Worker thread - System.Threading.ThreadHelper.ThreadStart - Normal - ? = {System.Threading.Thread} - null - False + + ForcedBreak - - 2 - - null - False - 0 - False - False - False - False - null - null - - - null - Normal - - null - False + + + - - null - False - 0 - False - True - True - False - System.Threading.WaitHandle.WaitOne - Debugger.Tests.TestPrograms.MainThreadExit.WaitForALongTime - Worker thread - System.Threading.ThreadHelper.ThreadStart - Normal - ? = {System.Threading.Thread} - Debugger.Tests.TestPrograms.MainThreadExit.WaitForALongTime - False + + diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/MetadataIdentity.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/MetadataIdentity.cs index c33f3cc8c0..8b509e6c15 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/MetadataIdentity.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/MetadataIdentity.cs @@ -52,10 +52,11 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - MetadataIdentity.exe + mscorlib.dll (No symbols) + MetadataIdentity.exe (Has symbols) Break Break diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/PrimitiveValue.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/PrimitiveValue.cs index ec86946ff6..b612a874b3 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/PrimitiveValue.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/PrimitiveValue.cs @@ -50,183 +50,220 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - PrimitiveValue.exe + mscorlib.dll (No symbols) + PrimitiveValue.exe (Has symbols) Break - - - - - - True - b - False - False - False - False - False - True - True - - - null - System.Object - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - True - False - False - False - False - False - null - mscorlib.dll - - System.Boolean - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - False - False - False - False - True - False - System.Boolean - - + + + + + + + + null + + + + + - - - - - 5 - i - False - False - True - False - False - True - 5 - - - null - System.Object - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - True - False - False - False - False - False - null - mscorlib.dll - - System.Int32 - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - False - False - True - False - True - False - System.Int32 - - + + + + + + + null + + + + + - - - - - five - s - False - False - False - False - False - True - five - - - null - System.Object - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - True - False - False - False - False - False - null - mscorlib.dll - - System.String - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - False - False - False - False - True - False - System.String - - + + + + + + + null + + + + + - - - - - 5.5 - d - False - False - False - False - False - True - 5.5 - - - null - System.Object - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - True - False - False - False - False - False - null - mscorlib.dll - - System.Double - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - False - False - False - False - True - False - System.Double - - + + + + + + + null + + + + + True diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/SetIP.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/SetIP.cs index 8612741e54..72a6bf91e9 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/SetIP.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/SetIP.cs @@ -45,13 +45,14 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - SetIP.exe - System.dll - System.Configuration.dll - System.Xml.dll + mscorlib.dll (No symbols) + SetIP.exe (Has symbols) + System.dll (No symbols) + System.Configuration.dll (No symbols) + System.Xml.dll (No symbols) 1\r\n Break SetIP diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/SimpleProgram.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/SimpleProgram.cs index dc302d1882..b371cf78a6 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/SimpleProgram.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/SimpleProgram.cs @@ -38,10 +38,11 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - SimpleProgram.exe + mscorlib.dll (No symbols) + SimpleProgram.exe (Has symbols) diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/StackOverflow.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/StackOverflow.cs index a1f70ab7a5..0521f7376e 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/StackOverflow.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/StackOverflow.cs @@ -45,21 +45,22 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - StackOverflow.exe + mscorlib.dll (No symbols) + StackOverflow.exe (Has symbols) Break - - + Exception - - 1 - 0 - False - True - Fun - StackOverflow.cs:21,3-21,4 + + diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Stepping.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Stepping.cs index 4c7d1447b0..fbc51e1ea7 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Stepping.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/Stepping.cs @@ -77,17 +77,18 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - Stepping.exe - System.dll + mscorlib.dll (No symbols) + Stepping.exe (Has symbols) + System.dll (No symbols) Break Stepping.cs:16,4-16,40 StepComplete Stepping.cs:17,4-17,44 - System.Configuration.dll - System.Xml.dll + System.Configuration.dll (No symbols) + System.Xml.dll (No symbols) 1\r\n StepComplete Stepping.cs:18,4-18,10 diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/TerminatePausedProcess.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/TerminatePausedProcess.cs index 5b4c86a1f7..26dda5eafb 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/TerminatePausedProcess.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/TerminatePausedProcess.cs @@ -40,15 +40,16 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - TerminatePausedProcess.exe + mscorlib.dll (No symbols) + TerminatePausedProcess.exe (Has symbols) Break - mscorlib.dll - TerminatePausedProcess.exe + mscorlib.dll (No symbols) + TerminatePausedProcess.exe (Has symbols) Break diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/TerminateRunningProcess.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/TerminateRunningProcess.cs index c7c3de3b18..e7c8932caf 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/TerminateRunningProcess.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/TerminateRunningProcess.cs @@ -52,17 +52,18 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - TerminateRunningProcess.exe + mscorlib.dll (No symbols) + TerminateRunningProcess.exe (Has symbols) Break StepComplete Calling terminate - mscorlib.dll - TerminateRunningProcess.exe + mscorlib.dll (No symbols) + TerminateRunningProcess.exe (Has symbols) Break StepComplete Calling terminate diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ValueType.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ValueType.cs index 81c08de781..34c496d923 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ValueType.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/ValueType.cs @@ -47,67 +47,80 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - ValueType.exe + mscorlib.dll (No symbols) + ValueType.exe (Has symbols) Break - - - - - {Debugger.Tests.ValueType} - this - False - False - False - False - True - False - - - - - null - System.Object - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - True - False - False - False - False - False - null - mscorlib.dll - - System.ValueType - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - True - False - False - False - False - False - null - mscorlib.dll - - Debugger.Tests.ValueType - False - System.Collections.Generic.List`1[Debugger.MetaData.DebugType] - False - False - False - False - False - False - True - null - ValueType.exe - + + + + + + + + + null + + + + + + + diff --git a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/_Template.cs b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/_Template.cs index 1e05f67b5a..a351a4a05a 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/_Template.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Tests/Project/Src/TestPrograms/_Template.cs @@ -36,10 +36,11 @@ namespace Debugger.Tests { #if EXPECTED_OUTPUT - + - mscorlib.dll - _Template.exe + mscorlib.dll (No symbols) + _Template.exe (Has symbols) Break