From e24a7b11740a99c70f45f6b0b87730ab9eb5260c Mon Sep 17 00:00:00 2001 From: cui fliter Date: Tue, 25 Apr 2023 15:54:49 +0800 Subject: [PATCH] fix some comments Signed-off-by: cui fliter --- pkg/proc/threads.go | 3 ++- pkg/proc/variables.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/proc/threads.go b/pkg/proc/threads.go index e078966b..8b55e4c7 100644 --- a/pkg/proc/threads.go +++ b/pkg/proc/threads.go @@ -2,6 +2,7 @@ package proc import ( "errors" + "github.com/go-delve/delve/pkg/dwarf/op" ) @@ -17,7 +18,7 @@ type Thread interface { // variable returned may or may not change to reflect the new CPU status // when the thread is resumed or the registers are changed by calling // SetPC/SetSP/etc. - // To insure that the the returned variable won't change call the Copy + // To insure that the returned variable won't change call the Copy // method of Registers. Registers() (Registers, error) diff --git a/pkg/proc/variables.go b/pkg/proc/variables.go index a41dac86..e77515ff 100644 --- a/pkg/proc/variables.go +++ b/pkg/proc/variables.go @@ -1839,7 +1839,7 @@ func (v *Variable) writeZero() error { return err } -// writeInterface writes the empty interface of type typeAddr and data as the data field. +// writeEmptyInterface writes the empty interface of type typeAddr and data as the data field. func (v *Variable) writeEmptyInterface(typeAddr uint64, data *Variable) error { dstType, dstData, _ := v.readInterface() if v.Unreadable != nil {