diff --git a/pkg/proc/fbsdutil/regs.go b/pkg/proc/fbsdutil/regs.go index b8710870244706dc77b0ea876ca1fc0c9a4dee25..eee30e3fb27c4b09c8825e94e3b121aae2248da0 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 3d43703bc167e4c376b40f3f508175d61a55951e..1a708d1c38bda97e52baa9be7bb18572f419ee7f 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 469d92788c676db09f44e2956bee88c448b7f2c2..6a06f8dc45853d69781cfd998d7e8452847e92d0 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 fec7066daef968960066757dc0c7871a1d5092d0..86bfba20fc20cf7f9e5e2aa06a439478e9b8beea 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 c6fa1390051427c4c0633145426c227faae7329a..2d8842387db3918f8ae997a13d8985a21c68458e 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 79c4fb3a5f525995f3d951ca431ff37061841088..46731e96e538b53e140ffb27e47f241843b52d46 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.