diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-01-12 02:03:46 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-01-12 02:03:46 +0000 |
commit | c3b5b97b64685cee2635d0dc61425a5add983a39 (patch) | |
tree | 7721836a180b18fc4931e7caa3818c3f5412471f /libgo/go/debug | |
parent | ae82f812b9c48bddc2149eef5e5e542deacd9b15 (diff) | |
download | gcc-c3b5b97b64685cee2635d0dc61425a5add983a39.zip gcc-c3b5b97b64685cee2635d0dc61425a5add983a39.tar.gz gcc-c3b5b97b64685cee2635d0dc61425a5add983a39.tar.bz2 |
Simplify libgo Makefile conditionals.
From-SVN: r168696
Diffstat (limited to 'libgo/go/debug')
-rw-r--r-- | libgo/go/debug/proc/proc_rtems.go | 17 | ||||
-rw-r--r-- | libgo/go/debug/proc/regs_rtems_386.go | 5 | ||||
-rw-r--r-- | libgo/go/debug/proc/regs_rtems_amd64.go | 5 |
3 files changed, 27 insertions, 0 deletions
diff --git a/libgo/go/debug/proc/proc_rtems.go b/libgo/go/debug/proc/proc_rtems.go new file mode 100644 index 0000000..5311a63 --- /dev/null +++ b/libgo/go/debug/proc/proc_rtems.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 RTEMS yet. + +func Attach(pid int) (Process, os.Error) { + return nil, os.NewError("debug/proc not implemented on RTEMS") +} + +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_rtems_386.go b/libgo/go/debug/proc/regs_rtems_386.go new file mode 100644 index 0000000..3fc3e51 --- /dev/null +++ b/libgo/go/debug/proc/regs_rtems_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_rtems_amd64.go b/libgo/go/debug/proc/regs_rtems_amd64.go new file mode 100644 index 0000000..3fc3e51 --- /dev/null +++ b/libgo/go/debug/proc/regs_rtems_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 |