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
path: root/mcs
diff options
context:
space:
mode:
authorMartin Baulig <martin.baulig@xamarin.com>2018-08-31 19:03:11 +0300
committerMarek Safar <marek.safar@gmail.com>2018-09-06 14:52:13 +0300
commit0c7e4b378e1fd8c524116dcdf8a2be83c8a0ad83 (patch)
treecd26ae7cb817386d5141b7a24542a091ad16563c /mcs
parentb4961c559e7f424822a9945b0ee96e00283f7f6c (diff)
[sdb]: Properly version the `CMD_TYPE_GET_METHODS_BY_NAME_FLAGS` change.
This adds proper versioning to the wire change that was introduced in #9762. Fixes #10412.
Diffstat (limited to 'mcs')
-rw-r--r--mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs7
1 files changed, 5 insertions, 2 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 ec92b66c07d..979f92a8fa4 100644
--- a/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs
+++ b/mcs/class/Mono.Debugger.Soft/Mono.Debugger.Soft/Connection.cs
@@ -420,7 +420,7 @@ namespace Mono.Debugger.Soft
* with newer runtimes, and vice versa.
*/
internal const int MAJOR_VERSION = 2;
- internal const int MINOR_VERSION = 47;
+ internal const int MINOR_VERSION = 48;
enum WPSuspendPolicy {
NONE = 0,
@@ -2325,7 +2325,10 @@ namespace Mono.Debugger.Soft
public long[] Type_GetMethodsByNameFlags (long id, string name, int flags, bool ignoreCase) {
flags |= ignoreCase ? (int)BindingFlagsExtensions.BINDING_FLAGS_IGNORE_CASE : 0;
int listType = ignoreCase ? (int)MemberListTypeExtensions.CaseInsensitive : (int)MemberListTypeExtensions.CaseSensitive;
- PacketReader r = SendReceive (CommandSet.TYPE, (int)CmdType.CMD_TYPE_GET_METHODS_BY_NAME_FLAGS, new PacketWriter ().WriteId (id).WriteString (name).WriteInt (flags).WriteInt (listType));
+ var w = new PacketWriter ().WriteId (id).WriteString (name).WriteInt (flags);
+ if (Version.AtLeast (2, 48))
+ w.WriteInt (listType);
+ PacketReader r = SendReceive (CommandSet.TYPE, (int)CmdType.CMD_TYPE_GET_METHODS_BY_NAME_FLAGS, w);
int len = r.ReadInt ();
long[] res = new long [len];
for (int i = 0; i < len; ++i)