From: Austin Clements Date: Thu, 13 Aug 2009 00:22:47 +0000 (-0700) Subject: Convert ptrace to whole-package compilation. X-Git-Tag: weekly.2009-11-06~892 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ceaa7741a2f5831d351d94f68b5cf388be9e5ab2;p=gostls13.git Convert ptrace to whole-package compilation. R=rsc APPROVED=rsc DELTA=15 (9 added, 6 deleted, 0 changed) OCL=33136 CL=33136 --- diff --git a/usr/austin/ptrace/Makefile b/usr/austin/ptrace/Makefile new file mode 100644 index 0000000000..2158abc93c --- /dev/null +++ b/usr/austin/ptrace/Makefile @@ -0,0 +1,13 @@ +# Copyright 2009 The Go Authors. All rights reserved. +# Use of this source code is governed by a BSD-style +# license that can be found in the LICENSE file. + +include $(GOROOT)/src/Make.$(GOARCH) + +TARG=ptrace +GOFILES=\ + process.go\ + ptrace_linux.go\ + regs_$(GOOS)_$(GOARCH).go\ + +include $(GOROOT)/src/Make.pkg diff --git a/usr/austin/ptrace/ptrace_linux.go b/usr/austin/ptrace/ptrace_linux.go index 489c8d43c0..5bf7072e27 100644 --- a/usr/austin/ptrace/ptrace_linux.go +++ b/usr/austin/ptrace/ptrace_linux.go @@ -9,7 +9,6 @@ import ( "fmt"; "io"; "os"; - "ptrace"; "runtime"; "strconv"; "strings"; @@ -98,8 +97,6 @@ func (ts threadState) String() string { * Basic types */ -type thread struct - // A breakpoint stores information about a single breakpoint, // including its program counter, the overwritten text if the // breakpoint is installed. @@ -176,8 +173,6 @@ type thread struct { exitStatus int; } -func (p *process) newThread(tid int, signal int, cloned bool) (*thread, os.Error) - /* * Errors */ diff --git a/usr/austin/ptrace/regs_linux_amd64.go b/usr/austin/ptrace/regs_linux_amd64.go index c843bb134f..3b2a058d17 100644 --- a/usr/austin/ptrace/regs_linux_amd64.go +++ b/usr/austin/ptrace/regs_linux_amd64.go @@ -6,7 +6,6 @@ package ptrace import ( "os"; - "ptrace"; "strconv"; "syscall"; )