diff options
| author | Russ Cox <rsc@golang.org> | 2009-09-15 13:51:33 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-09-15 13:51:33 -0700 |
| commit | 98c98192eca5b49be70bfc33118d44dae9670ca4 (patch) | |
| tree | 13db63bed01b1768d8ddabd9ecf4277e09c0e402 /src/pkg/debug | |
| parent | 9b5eb305e103d640a748f83a24f7631c0cdb5829 (diff) | |
| download | go-98c98192eca5b49be70bfc33118d44dae9670ca4.tar.xz | |
final batch for "declared and not used"
* update mksyscall.sh and rebuild syscall/z*.go
* fix a few linux-only files
R=r
DELTA=455 (12 added, 1 deleted, 442 changed)
OCL=34637
CL=34655
Diffstat (limited to 'src/pkg/debug')
| -rw-r--r-- | src/pkg/debug/proc/proc_linux.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/pkg/debug/proc/proc_linux.go b/src/pkg/debug/proc/proc_linux.go index a3ee088ad1..8fb147ddc2 100644 --- a/src/pkg/debug/proc/proc_linux.go +++ b/src/pkg/debug/proc/proc_linux.go @@ -421,7 +421,6 @@ func (p *process) uninstallBreakpoints() os.Error { // event. func (t *thread) wait() { for { - var err os.Error; var ev debugEvent; ev.t = t; t.logTrace("beginning wait"); @@ -764,7 +763,7 @@ func (p *process) do(f func () os.Error) os.Error { // stopMonitor stops the monitor with the given error. If the monitor // is already stopped, does nothing. func (p *process) stopMonitor(err os.Error) { - doNotBlock := p.stopReq <- err; + _ = p.stopReq <- err; // do not block // TODO(austin) Wait until monitor has exited? } @@ -1215,7 +1214,7 @@ func (p *process) attachAllThreads() os.Error { continue; } - t, err := p.attachThread(tid); + _, err = p.attachThread(tid); if err != nil { // There could have been a race, or // this process could be a zobmie. @@ -1309,7 +1308,7 @@ func ForkExec(argv0 string, argv []string, envv []string, dir string, fd []*os.F p.pid = pid; // The process will raise SIGTRAP when it reaches execve. - t, err := p.newThread(pid, syscall.SIGTRAP, false); + _, err := p.newThread(pid, syscall.SIGTRAP, false); return err; }); if err != nil { |
