From 6b2ed0d684ce9509950cdb516bef4d71119697e5 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Wed, 6 Nov 2024 16:15:48 +0200 Subject: [PATCH] proc: fix typos in errors and comments (#3852) --- pkg/proc/evalop/evalcompile.go | 2 +- pkg/proc/proc_general_test.go | 2 +- pkg/proc/target_exec.go | 2 +- pkg/proc/types.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/proc/evalop/evalcompile.go b/pkg/proc/evalop/evalcompile.go index 14cb5304..af3f9299 100644 --- a/pkg/proc/evalop/evalcompile.go +++ b/pkg/proc/evalop/evalcompile.go @@ -234,7 +234,7 @@ func (ctx *compileCtx) depthCheck(endDepth int) error { debugPinnerSeen = true case *CallInjectionComplete: if op.DoPinning && !debugPinnerSeen { - err = fmt.Errorf("internal debugger error: pinning call injection seen before call to %s at instrution %d", DebugPinnerFunctionName, i) + err = fmt.Errorf("internal debugger error: pinning call injection seen before call to %s at instruction %d", DebugPinnerFunctionName, i) } } if err != nil { diff --git a/pkg/proc/proc_general_test.go b/pkg/proc/proc_general_test.go index e0a0b763..56600aa1 100644 --- a/pkg/proc/proc_general_test.go +++ b/pkg/proc/proc_general_test.go @@ -42,7 +42,7 @@ func TestIssue3760(t *testing.T) { t.Fatalf("should contain it") } if mem.contains(0xfffffffffffffff0, 16) { - t.Fatalf("shoud be false") + t.Fatalf("should be false") } cm := cacheMemory(nil, 0xffffffffffffffff, 1) if cm != nil { diff --git a/pkg/proc/target_exec.go b/pkg/proc/target_exec.go index 06738bef..55dc933d 100644 --- a/pkg/proc/target_exec.go +++ b/pkg/proc/target_exec.go @@ -1277,7 +1277,7 @@ func setStepIntoNewProcBreakpoint(p *Target, sameGCond ast.Expr) { } // We don't want to use startpc directly because it will be an - // autogenerated wrapper on some versions of Go. Addditionally, once we + // autogenerated wrapper on some versions of Go. Additionally, once we // have the correct function we must also skip to prologue. startfn := p.BinInfo().PCToFunc(uint64(startpc)) if startfn2, _ := skipAutogeneratedWrappersIn(p, startfn, uint64(startpc), true); startfn2 != nil { diff --git a/pkg/proc/types.go b/pkg/proc/types.go index eaa2b771..7c2237cc 100644 --- a/pkg/proc/types.go +++ b/pkg/proc/types.go @@ -207,7 +207,7 @@ func dwarfToRuntimeType(bi *BinaryInfo, mem MemoryReadWriter, typ godwarf.Type) kindv = _type.loadFieldNamed("Kind_") } if kindv == nil { - return 0, 0, false, fmt.Errorf("unreadable interace type (no kind field)") + return 0, 0, false, fmt.Errorf("unreadable interface type (no kind field)") } if kindv.Unreadable != nil || kindv.Kind != reflect.Uint { return 0, 0, false, fmt.Errorf("unreadable interface type: %v", kindv.Unreadable)