]> Cypherpunks repositories - gostls13.git/commitdiff
Convert ptrace to whole-package compilation.
authorAustin Clements <aclements@csail.mit.edu>
Thu, 13 Aug 2009 00:22:47 +0000 (17:22 -0700)
committerAustin Clements <aclements@csail.mit.edu>
Thu, 13 Aug 2009 00:22:47 +0000 (17:22 -0700)
R=rsc
APPROVED=rsc
DELTA=15  (9 added, 6 deleted, 0 changed)
OCL=33136
CL=33136

usr/austin/ptrace/Makefile [new file with mode: 0644]
usr/austin/ptrace/ptrace_linux.go
usr/austin/ptrace/regs_linux_amd64.go

diff --git a/usr/austin/ptrace/Makefile b/usr/austin/ptrace/Makefile
new file mode 100644 (file)
index 0000000..2158abc
--- /dev/null
@@ -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
index 489c8d43c09afde2ef156802b83fb8671d949e66..5bf7072e2792d9fbfba4af14a20c821d62debcc9 100644 (file)
@@ -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
  */
index c843bb134f8d9314042628bce4c432a3c781320c..3b2a058d17689df0e9fe00672a824cdbf76e5596 100644 (file)
@@ -6,7 +6,6 @@ package ptrace
 
 import (
        "os";
-       "ptrace";
        "strconv";
        "syscall";
 )