Imported Upstream version 5.2.0.175

Former-commit-id: bb0468d0f257ff100aa895eb5fe583fb5dfbf900
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-06-07 13:16:24 +00:00
parent 4bdbaf4a88
commit 966bba02bb
8776 changed files with 346420 additions and 149650 deletions

View File

@@ -200,6 +200,20 @@ namespace Mono.Debugger.Soft
res.Add (attr);
return res.ToArray ();
}
public string FullName {
get {
string type_namespace = DeclaringType.Namespace;
string type_name = DeclaringType.Name;
StringBuilder sb = new StringBuilder ();
if (type_namespace != String.Empty)
sb.Append (type_namespace).Append (".");
sb.Append (type_name);
sb.Append (":");
sb.Append (Name);
return sb.ToString ();
}
}
}
}

View File

@@ -13,7 +13,6 @@ using System.Threading.Tasks;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Threading.Tasks;
using MonoTests.Helpers;
public class TestsBase
@@ -319,6 +318,10 @@ public class Tests : TestsBase, ITest2
threadpool_io ();
return 0;
}
if (args.Length > 0 && args [0] == "attach") {
new Tests ().attach ();
return 0;
}
assembly_load ();
breakpoints ();
single_stepping ();
@@ -1688,6 +1691,26 @@ public class Tests : TestsBase, ITest2
streamOut.Close ();
var bsIn = t.Result;
}
[MethodImplAttribute (MethodImplOptions.NoInlining)]
public void attach_break () {
}
[MethodImplAttribute (MethodImplOptions.NoInlining)]
public void attach () {
AppDomain domain = AppDomain.CreateDomain ("domain");
CrossDomain o = (CrossDomain)domain.CreateInstanceAndUnwrap (
typeof (CrossDomain).Assembly.FullName, "CrossDomain");
o.assembly_load ();
o.type_load ();
// Wait for the client to attach
while (true) {
Thread.Sleep (200);
attach_break ();
}
}
}
public class SentinelClass : MarshalByRefObject {
@@ -1712,6 +1735,11 @@ public class CrossDomain : MarshalByRefObject
public void assembly_load () {
Tests.assembly_load_in_domain ();
}
public void type_load () {
//Activator.CreateInstance (typeof (int).Assembly.GetType ("Microsoft.Win32.RegistryOptions"));
var is_server = System.Runtime.GCSettings.IsServerGC;
}
}
public class Foo

View File

@@ -1 +1 @@
61b3e31088102e4ffffb6bdae168636c1356d2de
631b5985db1ff7129d11b1443984be1b7c2fabcb