pkg: fix a few function names on comments

Signed-off-by: cui fliter <imcusg@gmail.com>
This commit is contained in:
cui fliter 2022-10-05 23:17:53 +08:00 committed by Alessandro Arzilli
parent 6440b3ba92
commit 7d2cf11550
4 changed files with 4 additions and 4 deletions

@ -1045,7 +1045,7 @@ func readStackVariable(t *Target, thread Thread, regs Registers, off uint64, typ
return v, nil
}
// fakeEntryScope alters scope to pretend that we are at the entry point of
// fakeFunctionEntryScope alters scope to pretend that we are at the entry point of
// fn and CFA and SP are the ones passed as argument.
// This function is used to create a scope for a call frame that doesn't
// exist anymore, to read the return variables of an injected function call,

@ -1510,7 +1510,7 @@ func binarywiredecode(in, buf []byte) (newbuf, msg []byte) {
return buf, buf[start:]
}
// Checksumok checks that checksum is a valid checksum for packet.
// checksumok checks that checksum is a valid checksum for packet.
func checksumok(packet, checksumBuf []byte) bool {
if packet[0] != '$' {
return false

@ -806,7 +806,7 @@ func isAutogeneratedOrDeferReturn(loc Location) bool {
return isAutogenerated(loc) || (loc.Fn != nil && loc.Fn.Name == "runtime.deferreturn")
}
// skipAutogeneratedWrappers skips autogenerated wrappers when setting a
// skipAutogeneratedWrappersIn skips autogenerated wrappers when setting a
// step-into breakpoint.
// See genwrapper in: $GOROOT/src/cmd/compile/internal/gc/subr.go
func skipAutogeneratedWrappersIn(p Process, startfn *Function, startpc uint64) (*Function, uint64) {

@ -160,7 +160,7 @@ func soleExpr(f *syntax.File) syntax.Expr {
return nil
}
// PrintError prints the error to stderr,
// printError prints the error to stderr,
// or its backtrace if it is a Starlark evaluation error.
func printError(err error) {
if evalErr, ok := err.(*starlark.EvalError); ok {