Example #1
0
        public void SendContinue(DbgContext context, DbgContinue.Types.Action action)
        {
            var msg = new DebuggerToBackend
            {
                Continue = new DbgContinue
                {
                    Context = context,
                    Action  = action
                }
            };

            Send(msg);
        }
        public void SendContinue(DbgContinue.Types.Action action, UInt32 breakpointMask, UInt32 flags)
        {
            var msg = new DebuggerToBackend
            {
                Continue = new DbgContinue
                {
                    Action         = action,
                    BreakpointMask = breakpointMask,
                    Flags          = flags
                }
            };

            Send(msg);
        }
Example #3
0
        private void HandleContinueRequest(DAPRequest request, DAPContinueRequest msg, DbgContinue.Types.Action action)
        {
            var state = GetThread(msg.threadId, true);

            if (action == DbgContinue.Types.Action.Pause)
            {
                if (state.Stopped)
                {
                    throw new RequestFailedException("Already stopped");
                }
            }
            else
            {
                if (!state.Stopped)
                {
                    throw new RequestFailedException("Already running");
                }

                state.Stopped = false;
            }

            SendContinue(state.Context, action);

            var reply = new DAPContinueResponse
            {
                allThreadsContinued = false
            };

            Stream.SendReply(request, reply);
        }
Example #4
0
 private void SendContinue(DbgContext context, DbgContinue.Types.Action action)
 {
     DbgCli.SendContinue(context, action);
 }
Example #5
0
        private void HandleContinueRequest(DAPRequest request, DAPContinueRequest msg, DbgContinue.Types.Action action)
        {
            if (msg.threadId != 1)
            {
                throw new RequestFailedException("Requested continue for unknown thread");
            }

            if (action == DbgContinue.Types.Action.Pause)
            {
                if (Stopped)
                {
                    throw new RequestFailedException("Already stopped");
                }

                PauseRequested = true;
            }
            else
            {
                if (!Stopped)
                {
                    throw new RequestFailedException("Already running");
                }

                Stopped = false;
            }

            if (DebuggingStory)
            {
                SendContinue(action);
            }

            var reply = new DAPContinueResponse
            {
                allThreadsContinued = false
            };

            Stream.SendReply(request, reply);
        }
Example #6
0
 private void SendContinue(DbgContinue.Types.Action action)
 {
     DbgCli.SendContinue(action, GetContinueBreakpointMask(), GetContinueFlags());
 }