diff --git a/pkg/proc/fbsdutil/regs.go b/pkg/proc/fbsdutil/regs.go index b8710870..eee30e3f 100644 --- a/pkg/proc/fbsdutil/regs.go +++ b/pkg/proc/fbsdutil/regs.go @@ -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 diff --git a/pkg/proc/linutil/regs_amd64_arch.go b/pkg/proc/linutil/regs_amd64_arch.go index 3d43703b..1a708d1c 100644 --- a/pkg/proc/linutil/regs_amd64_arch.go +++ b/pkg/proc/linutil/regs_amd64_arch.go @@ -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 diff --git a/pkg/proc/linutil/regs_arm64_arch.go b/pkg/proc/linutil/regs_arm64_arch.go index 469d9278..6a06f8dc 100644 --- a/pkg/proc/linutil/regs_arm64_arch.go +++ b/pkg/proc/linutil/regs_arm64_arch.go @@ -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 diff --git a/pkg/proc/native/registers_darwin_amd64.go b/pkg/proc/native/registers_darwin_amd64.go index fec7066d..86bfba20 100644 --- a/pkg/proc/native/registers_darwin_amd64.go +++ b/pkg/proc/native/registers_darwin_amd64.go @@ -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. diff --git a/pkg/proc/registers.go b/pkg/proc/registers.go index c6fa1390..2d884238 100644 --- a/pkg/proc/registers.go +++ b/pkg/proc/registers.go @@ -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) diff --git a/pkg/proc/winutil/regs.go b/pkg/proc/winutil/regs.go index 79c4fb3a..46731e96 100644 --- a/pkg/proc/winutil/regs.go +++ b/pkg/proc/winutil/regs.go @@ -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.