提交 0fded288 编写于 作者: D Derek Parker 提交者: aarzilli

all: Fix typos

上级 9bc6ad4f
......@@ -464,7 +464,7 @@ func (dbp *Process) setCurrentBreakpoints(trapthread *Thread) error {
// TODO: In theory, we should also be setting the breakpoints on other
// threads that happen to have hit this BP. But doing so leads to periodic
// failures in the TestBreakpointsCounts test with hit counts being too high,
// which can be traced back to occurences of multiple threads hitting a BP
// which can be traced back to occurrences of multiple threads hitting a BP
// at the same time.
// My guess is that Windows will correctly trigger multiple DEBUG_EVENT's
......
......@@ -5,7 +5,7 @@ import "errors"
// Registers is an interface for a generic register type. The
// interface encapsulates the generic values / actions
// we need independant of arch. The concrete register types
// we need independent of arch. The concrete register types
// will be different depending on OS/Arch.
type Registers interface {
PC() uint64
......
......@@ -114,7 +114,7 @@ func (t *Thread) blocked() bool {
func (t *Thread) stopped() bool {
// TODO: We are assuming that threads are always stopped
// during command exection.
// during command execution.
return true
}
......
......@@ -168,7 +168,7 @@ type Variable struct {
// The Name field in this slice will always be the empty string except for structs (when it will be the field name) and for complex numbers (when it will be "real" and "imaginary")
// For maps each map entry will have to items in this slice, even numbered items will represent map keys and odd numbered items will represent their values
// This field's length is capped at proc.maxArrayValues for slices and arrays and 2*proc.maxArrayValues for maps, in the circumnstances where the cap takes effect len(Children) != Len
// The other length cap applied to this field is related to maximum recursion depth, when the maximum recursion depth is reached this field is left empty, contrary to the previous one this cap also applies to structs (otherwise structs will always have all thier member fields returned)
// The other length cap applied to this field is related to maximum recursion depth, when the maximum recursion depth is reached this field is left empty, contrary to the previous one this cap also applies to structs (otherwise structs will always have all their member fields returned)
Children []Variable `json:"children"`
// Unreadable addresses will have this field set
......
package rpc1
import (
"errors"
"fmt"
"log"
"net/rpc"
"net/rpc/jsonrpc"
"errors"
"github.com/derekparker/delve/service/api"
"sync"
"github.com/derekparker/delve/service/api"
)
// Client is a RPC service.Client.
......@@ -74,7 +75,7 @@ func (c *RPCClient) Continue() <-chan *api.DebuggerState {
state.Err = err
}
if state.Exited {
// Error types apparantly cannot be marshalled by Go correctly. Must reset error here.
// Error types apparently cannot be marshalled by Go correctly. Must reset error here.
state.Err = fmt.Errorf("Process %d has exited with status %d", c.ProcessPid(), state.ExitStatus)
}
ch <- state
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册