]> Cypherpunks repositories - gostls13.git/commitdiff
Make ptrace_linux compile with recent changes to switch type
authorAustin Clements <aclements@csail.mit.edu>
Thu, 6 Aug 2009 20:54:13 +0000 (13:54 -0700)
committerAustin Clements <aclements@csail.mit.edu>
Thu, 6 Aug 2009 20:54:13 +0000 (13:54 -0700)
checking.

R=rsc
APPROVED=rsc
DELTA=11  (0 added, 0 deleted, 11 changed)
OCL=32839
CL=32841

usr/austin/ptrace/ptrace_linux.go

index b1e1b3da9321302b6188763d96f042b4f8ba8635..489c8d43c09afde2ef156802b83fb8671d949e66 100644 (file)
@@ -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 {