提交 279c29a3 编写于 作者: A aarzilli 提交者: Derek Parker

proc: remove CX method from proc.Registers

It is not used anymore besides internally by the proc/gdbserial
backend.
上级 dee267b6
......@@ -132,11 +132,6 @@ func (r *AMD64Registers) BP() uint64 {
return uint64(r.Regs.Rbp)
}
// CX returns the value of RCX register.
func (r *AMD64Registers) CX() uint64 {
return uint64(r.Regs.Rcx)
}
// TLS returns the address of the thread local storage memory segment.
func (r *AMD64Registers) TLS() uint64 {
return r.Fsbase
......
......@@ -112,11 +112,6 @@ func (r *AMD64Registers) BP() uint64 {
return r.Regs.Rbp
}
// CX returns the value of RCX register.
func (r *AMD64Registers) CX() uint64 {
return r.Regs.Rcx
}
// TLS returns the address of the thread local storage memory segment.
func (r *AMD64Registers) TLS() uint64 {
return r.Regs.Fs_base
......
......@@ -87,11 +87,6 @@ func (r *ARM64Registers) BP() uint64 {
return r.Regs.Regs[29]
}
// CX returns the value of RCX register.
func (r *ARM64Registers) CX() uint64 {
return 0
}
// TLS returns the address of the thread local storage memory segment.
func (r *ARM64Registers) TLS() uint64 {
return 0
......
......@@ -100,11 +100,6 @@ func (r *Regs) BP() uint64 {
return r.rbp
}
// CX returns the value of the RCX register.
func (r *Regs) CX() uint64 {
return r.rcx
}
// TLS returns the value of the register
// that contains the location of the thread
// local storage segment.
......
......@@ -18,7 +18,6 @@ type Registers interface {
PC() uint64
SP() uint64
BP() uint64
CX() uint64
TLS() uint64
// GAddr returns the address of the G variable if it is known, 0 and false otherwise
GAddr() (uint64, bool)
......
......@@ -152,11 +152,6 @@ func (r *AMD64Registers) BP() uint64 {
return r.rbp
}
// CX returns the value of the RCX register.
func (r *AMD64Registers) CX() uint64 {
return r.rcx
}
// TLS returns the value of the register
// that contains the location of the thread
// local storage segment.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册