From 86f8dd621a0d746557516b0e0cd70f8e5589ae10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Karlas=CC=8C?= Date: Fri, 16 Jun 2017 08:14:53 +0200 Subject: Fixed fetching Enum values on older runtimes https://github.com/mono/debugger-libs/commit/525c3a685d52eb6ed053ee23c358e54dc091d9cb --- mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mcs/class/Mono.Debugger.Soft') 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 af3e1716ca4..602c827091d 100644 --- a/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs +++ b/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs @@ -2214,7 +2214,7 @@ namespace Mono.Debugger.Soft internal ValueImpl[] Type_GetValues (long id, long[] fields, long thread_id) { int len = fields.Length; PacketReader r; - if (thread_id != 0) + if (thread_id != 0 && Version.AtLeast(2, 3)) r = SendReceive (CommandSet.TYPE, (int)CmdType.GET_VALUES_2, new PacketWriter ().WriteId (id).WriteId (thread_id).WriteInt (len).WriteIds (fields)); else r = SendReceive (CommandSet.TYPE, (int)CmdType.GET_VALUES, new PacketWriter ().WriteId (id).WriteInt (len).WriteIds (fields)); -- cgit v1.2.3