Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / libgo / go / debug / proc / regs_linux_arm.go
blobec78cbcf2597630234ccde7f8782d93b4014881f
1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 package proc
7 import (
8 "os"
9 "syscall"
12 // TODO(kaib): add support
14 type armRegs struct{}
16 func (r *armRegs) PC() Word { return Word(0) }
18 func (r *armRegs) SetPC(val Word) os.Error { return nil }
20 func (r *armRegs) Link() Word { return Word(0) }
22 func (r *armRegs) SetLink(val Word) os.Error { return nil }
24 func (r *armRegs) SP() Word { return Word(0) }
26 func (r *armRegs) SetSP(val Word) os.Error { return nil }
28 func (r *armRegs) Names() []string { return nil }
30 func (r *armRegs) Get(i int) Word { return Word(0) }
32 func (r *armRegs) Set(i int, val Word) os.Error {
33 return nil
36 func newRegs(regs *syscall.PtraceRegs, setter func(*syscall.PtraceRegs) os.Error) Regs {
37 res := armRegs{}
38 return &res