proc: correct minor typos (#2148)
This commit is contained in:
parent
328cf87808
commit
3660f28397
@ -108,7 +108,7 @@ type BinaryInfo struct {
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
// ErrCouldNotDetermineRelocation is an error returned when Delve could not determine the base address of a
|
// ErrCouldNotDetermineRelocation is an error returned when Delve could not determine the base address of a
|
||||||
// position independant executable.
|
// position independent executable.
|
||||||
ErrCouldNotDetermineRelocation = errors.New("could not determine the base address of a PIE")
|
ErrCouldNotDetermineRelocation = errors.New("could not determine the base address of a PIE")
|
||||||
|
|
||||||
// ErrNoDebugInfoFound is returned when Delve cannot open the debug_info
|
// ErrNoDebugInfoFound is returned when Delve cannot open the debug_info
|
||||||
|
@ -312,7 +312,7 @@ func (r *AMD64Registers) Get(n int) (uint64, error) {
|
|||||||
return 0, proc.ErrUnknownRegister
|
return 0, proc.ErrUnknownRegister
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy returns a copy of these registers that is guarenteed not to change.
|
// Copy returns a copy of these registers that is guaranteed not to change.
|
||||||
func (r *AMD64Registers) Copy() (proc.Registers, error) {
|
func (r *AMD64Registers) Copy() (proc.Registers, error) {
|
||||||
if r.loadFpRegs != nil {
|
if r.loadFpRegs != nil {
|
||||||
err := r.loadFpRegs(r)
|
err := r.loadFpRegs(r)
|
||||||
|
@ -840,7 +840,7 @@ func (p *gdbProcess) handleThreadSignals(trapthread *gdbThread) (trapthreadOut *
|
|||||||
}
|
}
|
||||||
|
|
||||||
// RequestManualStop will attempt to stop the process
|
// RequestManualStop will attempt to stop the process
|
||||||
// without a breakpoint or signal having been recieved.
|
// without a breakpoint or signal having been received.
|
||||||
func (p *gdbProcess) RequestManualStop() error {
|
func (p *gdbProcess) RequestManualStop() error {
|
||||||
p.conn.manualStopMutex.Lock()
|
p.conn.manualStopMutex.Lock()
|
||||||
p.manualStopRequested = true
|
p.manualStopRequested = true
|
||||||
|
@ -288,7 +288,7 @@ func (r *AMD64Registers) Get(n int) (uint64, error) {
|
|||||||
return 0, proc.ErrUnknownRegister
|
return 0, proc.ErrUnknownRegister
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy returns a copy of these registers that is guarenteed not to change.
|
// Copy returns a copy of these registers that is guaranteed not to change.
|
||||||
func (r *AMD64Registers) Copy() (proc.Registers, error) {
|
func (r *AMD64Registers) Copy() (proc.Registers, error) {
|
||||||
if r.loadFpRegs != nil {
|
if r.loadFpRegs != nil {
|
||||||
err := r.loadFpRegs(r)
|
err := r.loadFpRegs(r)
|
||||||
|
@ -122,7 +122,7 @@ func (r *ARM64Registers) Get(n int) (uint64, error) {
|
|||||||
return 0, proc.ErrUnknownRegister
|
return 0, proc.ErrUnknownRegister
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy returns a copy of these registers that is guarenteed not to change.
|
// Copy returns a copy of these registers that is guaranteed not to change.
|
||||||
func (r *ARM64Registers) Copy() (proc.Registers, error) {
|
func (r *ARM64Registers) Copy() (proc.Registers, error) {
|
||||||
if r.loadFpRegs != nil {
|
if r.loadFpRegs != nil {
|
||||||
err := r.loadFpRegs(r)
|
err := r.loadFpRegs(r)
|
||||||
|
@ -188,7 +188,7 @@ func (r *I386Registers) Get(n int) (uint64, error) {
|
|||||||
return 0, proc.ErrUnknownRegister
|
return 0, proc.ErrUnknownRegister
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy returns a copy of these registers that is guarenteed not to change.
|
// Copy returns a copy of these registers that is guaranteed not to change.
|
||||||
func (r *I386Registers) Copy() (proc.Registers, error) {
|
func (r *I386Registers) Copy() (proc.Registers, error) {
|
||||||
if r.loadFpRegs != nil {
|
if r.loadFpRegs != nil {
|
||||||
err := r.loadFpRegs(r)
|
err := r.loadFpRegs(r)
|
||||||
|
@ -2667,7 +2667,7 @@ func TestIssue664(t *testing.T) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Benchmarks (*Processs).Continue + (*Scope).FunctionArguments
|
// Benchmarks (*Process).Continue + (*Scope).FunctionArguments
|
||||||
func BenchmarkTrace(b *testing.B) {
|
func BenchmarkTrace(b *testing.B) {
|
||||||
withTestProcess("traceperf", b, func(p *proc.Target, fixture protest.Fixture) {
|
withTestProcess("traceperf", b, func(p *proc.Target, fixture protest.Fixture) {
|
||||||
setFunctionBreakpoint(p, b, "main.PerfCheck")
|
setFunctionBreakpoint(p, b, "main.PerfCheck")
|
||||||
|
@ -377,7 +377,7 @@ func FindGoroutine(dbp *Target, gid int) (*G, error) {
|
|||||||
// 3. if the caller asks for gid == 0 and the selected goroutine is
|
// 3. if the caller asks for gid == 0 and the selected goroutine is
|
||||||
// either 0 or nil.
|
// either 0 or nil.
|
||||||
// Goroutine 0 is special, it either means we have no current goroutine
|
// Goroutine 0 is special, it either means we have no current goroutine
|
||||||
// (for example, running C code), or that we are running on a speical
|
// (for example, running C code), or that we are running on a special
|
||||||
// stack (system stack, signal handling stack) and we didn't properly
|
// stack (system stack, signal handling stack) and we didn't properly
|
||||||
// detect it.
|
// detect it.
|
||||||
// Since there could be multiple goroutines '0' running simultaneously
|
// Since there could be multiple goroutines '0' running simultaneously
|
||||||
|
@ -322,7 +322,7 @@ func (r *AMD64Registers) Get(n int) (uint64, error) {
|
|||||||
return 0, proc.ErrUnknownRegister
|
return 0, proc.ErrUnknownRegister
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy returns a copy of these registers that is guarenteed not to change.
|
// Copy returns a copy of these registers that is guaranteed not to change.
|
||||||
func (r *AMD64Registers) Copy() (proc.Registers, error) {
|
func (r *AMD64Registers) Copy() (proc.Registers, error) {
|
||||||
var rr AMD64Registers
|
var rr AMD64Registers
|
||||||
rr = *r
|
rr = *r
|
||||||
|
Loading…
Reference in New Issue
Block a user