aboutsummaryrefslogtreecommitdiff
path: root/libgo/go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-01-12 06:34:08 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-01-12 06:34:08 +0000
commitf2ee78b861b8daab2675e1a24798b1069f763dc0 (patch)
treef6ea31c859488c93306c1cfb3148540b52d840b5 /libgo/go
parentc3b5b97b64685cee2635d0dc61425a5add983a39 (diff)
downloadgcc-f2ee78b861b8daab2675e1a24798b1069f763dc0.zip
gcc-f2ee78b861b8daab2675e1a24798b1069f763dc0.tar.gz
gcc-f2ee78b861b8daab2675e1a24798b1069f763dc0.tar.bz2
Preliminary framework for Solaris support.
Partly from Rainer Orth. From-SVN: r168697
Diffstat (limited to 'libgo/go')
-rw-r--r--libgo/go/debug/proc/proc_solaris.go17
-rw-r--r--libgo/go/debug/proc/regs_solaris_386.go5
-rw-r--r--libgo/go/debug/proc/regs_solaris_amd64.go5
-rw-r--r--libgo/go/debug/proc/regs_solaris_sparc.go5
-rw-r--r--libgo/go/debug/proc/regs_solaris_sparcv9.go5
5 files changed, 37 insertions, 0 deletions
diff --git a/libgo/go/debug/proc/proc_solaris.go b/libgo/go/debug/proc/proc_solaris.go
new file mode 100644
index 0000000..a72c592
--- /dev/null
+++ b/libgo/go/debug/proc/proc_solaris.go
@@ -0,0 +1,17 @@
+// Copyright 2011 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.
+
+package proc
+
+import "os"
+
+// Process tracing is not supported on Solaris yet.
+
+func Attach(pid int) (Process, os.Error) {
+ return nil, os.NewError("debug/proc not implemented on Solaris")
+}
+
+func ForkExec(argv0 string, argv []string, envv []string, dir string, fd []*os.File) (Process, os.Error) {
+ return Attach(0)
+}
diff --git a/libgo/go/debug/proc/regs_solaris_386.go b/libgo/go/debug/proc/regs_solaris_386.go
new file mode 100644
index 0000000..3fc3e51
--- /dev/null
+++ b/libgo/go/debug/proc/regs_solaris_386.go
@@ -0,0 +1,5 @@
+// Copyright 2011 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.
+
+package proc
diff --git a/libgo/go/debug/proc/regs_solaris_amd64.go b/libgo/go/debug/proc/regs_solaris_amd64.go
new file mode 100644
index 0000000..3fc3e51
--- /dev/null
+++ b/libgo/go/debug/proc/regs_solaris_amd64.go
@@ -0,0 +1,5 @@
+// Copyright 2011 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.
+
+package proc
diff --git a/libgo/go/debug/proc/regs_solaris_sparc.go b/libgo/go/debug/proc/regs_solaris_sparc.go
new file mode 100644
index 0000000..3fc3e51
--- /dev/null
+++ b/libgo/go/debug/proc/regs_solaris_sparc.go
@@ -0,0 +1,5 @@
+// Copyright 2011 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.
+
+package proc
diff --git a/libgo/go/debug/proc/regs_solaris_sparcv9.go b/libgo/go/debug/proc/regs_solaris_sparcv9.go
new file mode 100644
index 0000000..3fc3e51
--- /dev/null
+++ b/libgo/go/debug/proc/regs_solaris_sparcv9.go
@@ -0,0 +1,5 @@
+// Copyright 2011 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.
+
+package proc