summaryrefslogtreecommitdiff
path: root/src/pkg/debug/proc/proc_linux.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-10-27 22:47:54 -0700
committerRuss Cox <rsc@golang.org>2009-10-27 22:47:54 -0700
commit7bc607518c0d27a618ddbbf35d1d636da65bc581 (patch)
tree59cdfb7c6316bd02d9cfe4e298cf6fc40ffc0c4a /src/pkg/debug/proc/proc_linux.go
parentb1f2d1c110b2d85468637ad06218428e17281ca2 (diff)
downloadgolang-7bc607518c0d27a618ddbbf35d1d636da65bc581.tar.gz
files that are okay from the last gofmt round
R=gri http://go/go-review/1015011
Diffstat (limited to 'src/pkg/debug/proc/proc_linux.go')
-rw-r--r--src/pkg/debug/proc/proc_linux.go24
1 files changed, 8 insertions, 16 deletions
diff --git a/src/pkg/debug/proc/proc_linux.go b/src/pkg/debug/proc/proc_linux.go
index f278ec727..60a0555e9 100644
--- a/src/pkg/debug/proc/proc_linux.go
+++ b/src/pkg/debug/proc/proc_linux.go
@@ -220,7 +220,7 @@ func (e *newThreadError) String() string {
return fmt.Sprintf("newThread wait wanted pid %v and signal %v, got %v and %v", e.Pid, e.StopSignal(), e.wantPid, e.wantSig);
}
-type ProcessExited struct {}
+type ProcessExited struct{}
func (p ProcessExited) String() string {
return "process exited";
@@ -449,9 +449,9 @@ func (t *thread) wait() {
if err == nil {
continue;
}
- // If we failed to continue, just let
- // the stop go through so we can
- // update the thread's state.
+ // If we failed to continue, just let
+ // the stop go through so we can
+ // update the thread's state.
}
if !<-t.proc.ready {
// The monitor exited
@@ -852,12 +852,8 @@ func (t *thread) stepAsync(ready chan os.Error) os.Error {
return err;
}
t.setState(singleStepping);
- t.onStop(func() {
- ready <- nil;
- },
- func(err os.Error) {
- ready <- err;
- });
+ t.onStop(func() { ready <- nil },
+ func(err os.Error) { ready <- err });
return nil;
}
@@ -1100,9 +1096,7 @@ func (p *process) WaitStop() os.Error {
}
p.transitionHandlers.Push(h);
};
- h.onErr = func(err os.Error) {
- ready <- err;
- };
+ h.onErr = func(err os.Error) { ready <- err };
p.transitionHandlers.Push(h);
return nil;
});
@@ -1114,9 +1108,7 @@ func (p *process) WaitStop() os.Error {
}
func (p *process) Stop() os.Error {
- err := p.do(func() os.Error {
- return p.stopAsync();
- });
+ err := p.do(func() os.Error { return p.stopAsync() });
if err != nil {
return err;
}