Skip to content

Commit

Permalink
[debugger] Bump protocol for multi threaded single step implementation (
Browse files Browse the repository at this point in the history
dotnet#34531)

As suggested by @jbevain we should bump the protocol to implement multi threaded single step.

Co-authored-by: thaystg <[email protected]>
  • Loading branch information
monojenkins and thaystg authored Apr 4, 2020
1 parent 6069f59 commit e253ff3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/mono/mono/mini/debugger-agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ typedef struct {
#define HEADER_LENGTH 11

#define MAJOR_VERSION 2
#define MINOR_VERSION 56
#define MINOR_VERSION 57

typedef enum {
CMD_SET_VM = 1,
Expand Down Expand Up @@ -4992,7 +4992,6 @@ debugger_agent_breakpoint_from_context (MonoContext *ctx)
if (MONO_CONTEXT_GET_IP (ctx) == orig_ip - 1)
MONO_CONTEXT_SET_IP (ctx, orig_ip);
}

static void
ss_args_destroy (SingleStepArgs *ss_args)
{
Expand All @@ -5003,6 +5002,8 @@ ss_args_destroy (SingleStepArgs *ss_args)
static int
handle_multiple_ss_requests (void)
{
if (!CHECK_PROTOCOL_VERSION (2, 57))
return DE_ERR_NOT_IMPLEMENTED;
return 1;
}

Expand Down

0 comments on commit e253ff3

Please sign in to comment.