Author: martin
Date: 2008-01-23 05:25:02 -0500 (Wed, 23 Jan 2008)
New Revision: 93636
Modified:
branches/martin/debugger-terrania/debugger/ChangeLog
branches/martin/debugger-terrania/debugger/languages/mono/MonoSymbolFile.cs
branches/martin/debugger-terrania/debugger/test/testsuite/TestSimpleGenerics.cs
Log:
2008-01-23 Martin Baulig <[EMAIL PROTECTED]>
* languages/mono/MonoSymbolFile.cs
(MonoSymbolFile.GetMethodName): Include type parameters.
Modified: branches/martin/debugger-terrania/debugger/ChangeLog
===================================================================
--- branches/martin/debugger-terrania/debugger/ChangeLog 2008-01-23
10:15:08 UTC (rev 93635)
+++ branches/martin/debugger-terrania/debugger/ChangeLog 2008-01-23
10:25:02 UTC (rev 93636)
@@ -1,5 +1,10 @@
2008-01-23 Martin Baulig <[EMAIL PROTECTED]>
+ * languages/mono/MonoSymbolFile.cs
+ (MonoSymbolFile.GetMethodName): Include type parameters.
+
+2008-01-23 Martin Baulig <[EMAIL PROTECTED]>
+
* languages/TargetStructObject.cs
(TargetStructObject.GetParentObject): Provide the `Thread'
implementation here; made the `TargetMemoryAccess' version
Modified:
branches/martin/debugger-terrania/debugger/languages/mono/MonoSymbolFile.cs
===================================================================
--- branches/martin/debugger-terrania/debugger/languages/mono/MonoSymbolFile.cs
2008-01-23 10:15:08 UTC (rev 93635)
+++ branches/martin/debugger-terrania/debugger/languages/mono/MonoSymbolFile.cs
2008-01-23 10:25:02 UTC (rev 93636)
@@ -625,6 +625,24 @@
internal static string GetMethodName (Cecil.MethodDefinition
mdef)
{
+ if (mdef.DeclaringType.GenericParameters.Count > 0) {
+ StringBuilder sb = new StringBuilder
(mdef.DeclaringType.FullName);
+ sb.Append ('<');
+ bool first = true;
+ foreach (Cecil.GenericParameter p in
mdef.DeclaringType.GenericParameters) {
+ if (first)
+ first = false;
+ else
+ sb.Append (",");
+ sb.Append (p.Name);
+ }
+ sb.Append (">.");
+ sb.Append (mdef.Name);
+ sb.Append (GetMethodSignature (mdef));
+ return sb.ToString ();
+
+ ;
+ }
return mdef.DeclaringType.FullName + '.' + mdef.Name +
GetMethodSignature (mdef);
}
Modified:
branches/martin/debugger-terrania/debugger/test/testsuite/TestSimpleGenerics.cs
===================================================================
---
branches/martin/debugger-terrania/debugger/test/testsuite/TestSimpleGenerics.cs
2008-01-23 10:15:08 UTC (rev 93635)
+++
branches/martin/debugger-terrania/debugger/test/testsuite/TestSimpleGenerics.cs
2008-01-23 10:25:02 UTC (rev 93636)
@@ -49,8 +49,7 @@
"{\n T Data;\n void Hello ();\n .ctor
(T);\n}");
AssertExecute ("step");
- // FIXME: Use correct method name
- AssertStopped (thread, "Foo`1.Hello()", LineFooHello);
+ AssertStopped (thread, "Foo`1<T>.Hello()",
LineFooHello);
AssertPrint (thread, "this", "(Foo`1<int>) { Data = 5
}");
AssertType (thread, "this",
@@ -67,7 +66,7 @@
AssertExecute ("step");
- AssertStopped (thread, "Foo`1.Hello()", LineFooHello);
+ AssertStopped (thread, "Foo`1<T>.Hello()",
LineFooHello);
AssertPrint (thread, "this", "(Bar`1<int>) {
<Foo`1<int>> = { Data = 5 } }");
AssertType (thread, "this",
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches