Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThays Grazia <thaystg@gmail.com>2019-01-21 23:28:12 +0300
committerZoltan Varga <vargaz@gmail.com>2019-01-21 23:28:12 +0300
commit5078e23d75a2d7c18731ef20c587b717a577878c (patch)
tree89ec956d977070d6b5cfd0e745311af1d1486983 /mcs/class/Mono.Debugger.Soft
parent6fee0c0ad874dbfda26f9de7a365cf77496d38e9 (diff)
[Debugger] Checking server version before call elapsed_time (#12511)
* The version of the server and client should be bumped to call the elapsed_time. * Removing extra { * Calling correctly. * This should be checked in ThreadMirror.ElapsedTime instead using vm.CheckProtocolVersion (), so calling the public method will fail.
Diffstat (limited to 'mcs/class/Mono.Debugger.Soft')
-rw-r--r--mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs2
-rw-r--r--mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/ThreadMirror.cs1
2 files changed, 2 insertions, 1 deletions
diff --git a/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs b/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs
index 9f073a74256..c98a6c37c58 100644
--- a/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs
+++ b/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs
@@ -427,7 +427,7 @@ namespace Mono.Debugger.Soft
* with newer runtimes, and vice versa.
*/
internal const int MAJOR_VERSION = 2;
- internal const int MINOR_VERSION = 49;
+ internal const int MINOR_VERSION = 50;
enum WPSuspendPolicy {
NONE = 0,
diff --git a/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/ThreadMirror.cs b/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/ThreadMirror.cs
index 26c032998e2..a3a4dcfc7a7 100644
--- a/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/ThreadMirror.cs
+++ b/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/ThreadMirror.cs
@@ -31,6 +31,7 @@ namespace Mono.Debugger.Soft
}
public long ElapsedTime () {
+ vm.CheckProtocolVersion (2, 50);
long elapsedTime = GetElapsedTime ();
return elapsedTime;
}