proc: remove CX method from proc.Registers

It is not used anymore besides internally by the proc/gdbserial
backend.
This commit is contained in:
aarzilli
2020-01-23 11:56:27 +01:00
committed by Derek Parker
parent dee267b68b
commit 279c29a37c
6 changed files with 0 additions and 26 deletions

View File

@ -132,11 +132,6 @@ func (r *AMD64Registers) BP() uint64 {
return uint64(r.Regs.Rbp) 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. // TLS returns the address of the thread local storage memory segment.
func (r *AMD64Registers) TLS() uint64 { func (r *AMD64Registers) TLS() uint64 {
return r.Fsbase return r.Fsbase

View File

@ -112,11 +112,6 @@ func (r *AMD64Registers) BP() uint64 {
return r.Regs.Rbp 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. // TLS returns the address of the thread local storage memory segment.
func (r *AMD64Registers) TLS() uint64 { func (r *AMD64Registers) TLS() uint64 {
return r.Regs.Fs_base return r.Regs.Fs_base

View File

@ -87,11 +87,6 @@ func (r *ARM64Registers) BP() uint64 {
return r.Regs.Regs[29] 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. // TLS returns the address of the thread local storage memory segment.
func (r *ARM64Registers) TLS() uint64 { func (r *ARM64Registers) TLS() uint64 {
return 0 return 0

View File

@ -100,11 +100,6 @@ func (r *Regs) BP() uint64 {
return r.rbp 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 // TLS returns the value of the register
// that contains the location of the thread // that contains the location of the thread
// local storage segment. // local storage segment.

View File

@ -18,7 +18,6 @@ type Registers interface {
PC() uint64 PC() uint64
SP() uint64 SP() uint64
BP() uint64 BP() uint64
CX() uint64
TLS() uint64 TLS() uint64
// GAddr returns the address of the G variable if it is known, 0 and false otherwise // GAddr returns the address of the G variable if it is known, 0 and false otherwise
GAddr() (uint64, bool) GAddr() (uint64, bool)

View File

@ -152,11 +152,6 @@ func (r *AMD64Registers) BP() uint64 {
return r.rbp 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 // TLS returns the value of the register
// that contains the location of the thread // that contains the location of the thread
// local storage segment. // local storage segment.