OSDN Git Service

PR c/21659
[pf3gnuchains/gcc-fork.git] / libgo / go / debug / proc / regs_linux_arm.go
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.
4
5 package proc
6
7 import (
8         "os"
9         "syscall"
10 )
11
12 // TODO(kaib): add support
13
14 type armRegs struct{}
15
16 func (r *armRegs) PC() Word { return Word(0) }
17
18 func (r *armRegs) SetPC(val Word) os.Error { return nil }
19
20 func (r *armRegs) Link() Word { return Word(0) }
21
22 func (r *armRegs) SetLink(val Word) os.Error { return nil }
23
24 func (r *armRegs) SP() Word { return Word(0) }
25
26 func (r *armRegs) SetSP(val Word) os.Error { return nil }
27
28 func (r *armRegs) Names() []string { return nil }
29
30 func (r *armRegs) Get(i int) Word { return Word(0) }
31
32 func (r *armRegs) Set(i int, val Word) os.Error {
33         return nil
34 }
35
36 func newRegs(regs *syscall.PtraceRegs, setter func(*syscall.PtraceRegs) os.Error) Regs {
37         res := armRegs{}
38         return &res
39 }