summaryrefslogtreecommitdiff
path: root/usr/austin
diff options
context:
space:
mode:
authorAustin Clements <aclements@csail.mit.edu>2009-09-24 08:32:10 -0700
committerAustin Clements <aclements@csail.mit.edu>2009-09-24 08:32:10 -0700
commit87fa6d3dd306e035a823a6ce7e2f94802b7164e6 (patch)
treef4db454b673ed4470b14638db71608fb11df8aab /usr/austin
parent90f1b948138c226c74616a4e625df1b1353f69a8 (diff)
downloadgolang-87fa6d3dd306e035a823a6ce7e2f94802b7164e6.tar.gz
Fix declared and not set errors in old ptrace package (still
used by ogle) R=rsc APPROVED=rsc DELTA=4 (0 added, 1 deleted, 3 changed) OCL=34852 CL=34964
Diffstat (limited to 'usr/austin')
-rw-r--r--usr/austin/ptrace/ptrace_linux.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr/austin/ptrace/ptrace_linux.go b/usr/austin/ptrace/ptrace_linux.go
index 06c02808f..83faa667f 100644
--- a/usr/austin/ptrace/ptrace_linux.go
+++ b/usr/austin/ptrace/ptrace_linux.go
@@ -419,7 +419,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");
@@ -762,7 +761,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;
// TODO(austin) Wait until monitor has exited?
}
@@ -1213,7 +1212,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.
@@ -1308,7 +1307,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 {