Examples of ErlangProcess


Examples of org.erlide.backend.debug.model.ErlangProcess

        if (module == null || line == -1) {
            ErlLogger.debug("can't do anything with no module/line defined");
            return;
        }

        final ErlangProcess erlangProcess = debugTarget
                .getOrCreateErlangProcess(getPid(debugTarget));
        // FIXME can't get stack in wait...
        // should be possible according to dbg_ui_trace_win....
        erlangProcess.getStackAndBindings(module, line);
        if (erlangProcess.isStepping()) {
            erlangProcess.fireSuspendEvent(DebugEvent.STEP_END);
        } else {
            erlangProcess.fireSuspendEvent(DebugEvent.BREAKPOINT);
        }
        erlangProcess.setNotStepping();
    }
View Full Code Here

Examples of org.erlide.backend.debug.model.ErlangProcess

    @Override
    public void execute(final ErlangDebugTarget debugTarget) {
        final OtpErlangTuple t = (OtpErlangTuple) cmds[1];
        final OtpErlangPid pid = (OtpErlangPid) t.elementAt(0);
        final ErlangProcess erlangProcess = debugTarget.getOrCreateErlangProcess(pid);
        final OtpErlangAtom statusA = (OtpErlangAtom) t.elementAt(2);
        final String status = statusA.atomValue();
        erlangProcess.setStatus(status);
        final OtpErlangTuple initialCall = (OtpErlangTuple) t.elementAt(1);
        erlangProcess.setInitialCall(new ErlangFunctionCall(initialCall));
        erlangProcess.fireCreationEvent();
    }
View Full Code Here

Examples of org.erlide.backend.debug.model.ErlangProcess

    @Override
    public void run(final IAction action) {
        final IStructuredSelection ss = (IStructuredSelection) fSelection;
        for (final Object o : ss.toArray()) {
            if (o instanceof ErlangProcess) {
                final ErlangProcess p = (ErlangProcess) o;
                p.setTracing(!p.getTracing());
            }
        }
    }
View Full Code Here

Examples of org.erlide.backend.debug.model.ErlangProcess

    }

    @Override
    public void execute(final ErlangDebugTarget debugTarget) {
        final OtpErlangPid pid = (OtpErlangPid) cmds[1];
        final ErlangProcess erlangProcess = debugTarget.getOrCreateErlangProcess(pid);
        final OtpErlangAtom sa = (OtpErlangAtom) cmds[2];
        final String status = sa.atomValue();
        if (status.equals("break")) {
            handleBreakStatus(erlangProcess, status);
        } else if (status.equals("exit")) {
            handleExitStatus(erlangProcess, status);
        } else if (status.equals("running")) {
            handleRunningStatus(erlangProcess, status);
        } else if (status.equals("idle")) {
            handleIdleStatus(erlangProcess, status);
        } else {
            erlangProcess.setStatus(status);
            erlangProcess.fireChangeEvent(DebugEvent.STATE | DebugEvent.CHANGE);
        }
    }
View Full Code Here

Examples of org.erlide.backend.debug.model.ErlangProcess

        }
    }

    @Override
    public void execute(final ErlangDebugTarget debugTarget) {
        final ErlangProcess erlangProcess = debugTarget
                .getOrCreateErlangProcess(getPid(debugTarget));

        if (module == null || line == -1) {
            erlangProcess.removeStackFrames();
            erlangProcess.fireSuspendEvent(DebugEvent.TERMINATE);
        }
        if (stackFrames != null) {
            erlangProcess.setStackFrames(module, line, stackFrames, bindings);
        }
        erlangProcess.fireSuspendEvent(DebugEvent.TERMINATE);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.