diff options
author | David Karlaš <david.karlas@xamarin.com> | 2017-06-16 09:14:53 +0300 |
---|---|---|
committer | David Karlaš <david.karlas@xamarin.com> | 2017-06-16 09:23:28 +0300 |
commit | 86f8dd621a0d746557516b0e0cd70f8e5589ae10 (patch) | |
tree | 7c175c3f004cb201712caecb7e1b919bc6b5abc1 /mcs/class/Mono.Debugger.Soft | |
parent | daa673f978a6b6bb5690630ea08a33c20ed93921 (diff) |
Fixed fetching Enum values on older runtimes
https://github.com/mono/debugger-libs/commit/525c3a685d52eb6ed053ee23c358e54dc091d9cb
Diffstat (limited to 'mcs/class/Mono.Debugger.Soft')
-rw-r--r-- | mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs | 2 |
1 files changed, 1 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 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)); |