From: Austin Clements Date: Thu, 6 Aug 2009 20:54:13 +0000 (-0700) Subject: Make ptrace_linux compile with recent changes to switch type X-Git-Tag: weekly.2009-11-06~953 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e2e6becf3a38aebb676d04943a1daf34598d641f;p=gostls13.git 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 --- diff --git a/usr/austin/ptrace/ptrace_linux.go b/usr/austin/ptrace/ptrace_linux.go index b1e1b3da93..489c8d43c0 100644 --- a/usr/austin/ptrace/ptrace_linux.go +++ b/usr/austin/ptrace/ptrace_linux.go @@ -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 {