mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 10:47:27 +08:00 
			
		
		
		
	proc: remove CX method from proc.Registers
It is not used anymore besides internally by the proc/gdbserial backend.
This commit is contained in:
		| @ -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 | ||||||
|  | |||||||
| @ -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 | ||||||
|  | |||||||
| @ -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 | ||||||
|  | |||||||
| @ -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. | ||||||
|  | |||||||
| @ -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) | ||||||
|  | |||||||
| @ -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. | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 aarzilli
					aarzilli