mirror of
https://github.com/go-delve/delve.git
synced 2025-10-27 20:23:41 +08:00
proc: Remove hardware assisted breakpoints
Only use software breakpoints for now. The reasoning is because it complicates the code without justification, and is only supported on Linux. Eventually, once watchpoints are properly implemented we will revive some of this code. Also, if it is ever necessary to actually set a hw breakpoint we can revive that code as well. All future versions of this code will include support for OSX before being merged back in.
This commit is contained in:
@ -267,15 +267,6 @@ func (dbp *Process) trapWait(pid int) (*Thread, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// Set all hardware breakpoints on the new thread.
|
||||
for _, bp := range dbp.Breakpoints {
|
||||
if !bp.hardware {
|
||||
continue
|
||||
}
|
||||
if err = dbp.setHardwareBreakpoint(bp.reg, th.Id, bp.Addr); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
if err = th.Continue(); err != nil {
|
||||
return nil, fmt.Errorf("could not continue new thread %d %s", cloned, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user