proc: fix typos in errors and comments (#3852)

This commit is contained in:
Oleksandr Redko 2024-11-06 16:15:48 +02:00 committed by GitHub
parent 844712a30b
commit 6b2ed0d684
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

@ -234,7 +234,7 @@ func (ctx *compileCtx) depthCheck(endDepth int) error {
debugPinnerSeen = true debugPinnerSeen = true
case *CallInjectionComplete: case *CallInjectionComplete:
if op.DoPinning && !debugPinnerSeen { 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 { if err != nil {

@ -42,7 +42,7 @@ func TestIssue3760(t *testing.T) {
t.Fatalf("should contain it") t.Fatalf("should contain it")
} }
if mem.contains(0xfffffffffffffff0, 16) { if mem.contains(0xfffffffffffffff0, 16) {
t.Fatalf("shoud be false") t.Fatalf("should be false")
} }
cm := cacheMemory(nil, 0xffffffffffffffff, 1) cm := cacheMemory(nil, 0xffffffffffffffff, 1)
if cm != nil { if cm != nil {

@ -1277,7 +1277,7 @@ func setStepIntoNewProcBreakpoint(p *Target, sameGCond ast.Expr) {
} }
// We don't want to use startpc directly because it will be an // 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. // have the correct function we must also skip to prologue.
startfn := p.BinInfo().PCToFunc(uint64(startpc)) startfn := p.BinInfo().PCToFunc(uint64(startpc))
if startfn2, _ := skipAutogeneratedWrappersIn(p, startfn, uint64(startpc), true); startfn2 != nil { if startfn2, _ := skipAutogeneratedWrappersIn(p, startfn, uint64(startpc), true); startfn2 != nil {

@ -207,7 +207,7 @@ func dwarfToRuntimeType(bi *BinaryInfo, mem MemoryReadWriter, typ godwarf.Type)
kindv = _type.loadFieldNamed("Kind_") kindv = _type.loadFieldNamed("Kind_")
} }
if kindv == nil { 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 { if kindv.Unreadable != nil || kindv.Kind != reflect.Uint {
return 0, 0, false, fmt.Errorf("unreadable interface type: %v", kindv.Unreadable) return 0, 0, false, fmt.Errorf("unreadable interface type: %v", kindv.Unreadable)