Commit e2e6becf authored by Austin Clements's avatar Austin Clements

Make ptrace_linux compile with recent changes to switch type

checking.

R=rsc
APPROVED=rsc
DELTA=11  (0 added, 0 deleted, 11 changed)
OCL=32839
CL=32841
parent 7955490d
......@@ -61,17 +61,17 @@ const (
type threadState string;
const (
running threadState = "Running";
singleStepping = "SingleStepping"; // Transient
stopping = "Stopping"; // Transient
stopped = "Stopped";
stoppedBreakpoint = "StoppedBreakpoint";
stoppedSignal = "StoppedSignal";
stoppedThreadCreate = "StoppedThreadCreate";
stoppedExiting = "StoppedExiting";
exiting = "Exiting"; // Transient (except main thread)
exited = "Exited";
detached = "Detached";
running threadState = "Running";
singleStepping threadState = "SingleStepping"; // Transient
stopping threadState = "Stopping"; // Transient
stopped threadState = "Stopped";
stoppedBreakpoint threadState = "StoppedBreakpoint";
stoppedSignal threadState = "StoppedSignal";
stoppedThreadCreate threadState = "StoppedThreadCreate";
stoppedExiting threadState = "StoppedExiting";
exiting threadState = "Exiting"; // Transient (except main thread)
exited threadState = "Exited";
detached threadState = "Detached";
)
func (ts threadState) isRunning() bool {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment