mirror of
https://github.com/go-delve/delve.git
synced 2025-11-02 04:36:29 +08:00
Fix typo
This commit is contained in:
@ -96,12 +96,12 @@ func (dbp *DebuggedProcess) Registers() (*syscall.PtraceRegs, error) {
|
||||
// Sets a breakpoint in the running process.
|
||||
func (dbp *DebuggedProcess) Break(addr uintptr) (*BreakPoint, error) {
|
||||
var (
|
||||
int3 = []byte{0xCC}
|
||||
f, l, fn = dbp.GoSymTable.PCToLine(uint64(addr))
|
||||
orginalData = make([]byte, 1)
|
||||
int3 = []byte{0xCC}
|
||||
f, l, fn = dbp.GoSymTable.PCToLine(uint64(addr))
|
||||
originalData = make([]byte, 1)
|
||||
)
|
||||
|
||||
_, err := syscall.PtracePeekData(dbp.Pid, addr, orginalData)
|
||||
_, err := syscall.PtracePeekData(dbp.Pid, addr, originalData)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@ -116,7 +116,7 @@ func (dbp *DebuggedProcess) Break(addr uintptr) (*BreakPoint, error) {
|
||||
File: f,
|
||||
Line: l,
|
||||
Addr: uint64(addr),
|
||||
OriginalData: orginalData,
|
||||
OriginalData: originalData,
|
||||
}
|
||||
|
||||
fname := fmt.Sprintf("%s:%d", f, l)
|
||||
|
||||
Reference in New Issue
Block a user