proc: refactor common code in WriteBreakpoint (#2300)

Moves common backend code in WriteBreakpoint to
proc.(*Target).SetBreakpoint.
This commit is contained in:
Alessandro Arzilli
2021-01-27 16:27:54 +01:00
committed by GitHub
parent f5d5a681d0
commit c40774d3d4
5 changed files with 16 additions and 27 deletions

View File

@ -33,7 +33,7 @@ type ProcessInternal interface {
Detach(bool) error
ContinueOnce() (trapthread Thread, stopReason StopReason, err error)
WriteBreakpoint(addr uint64) (file string, line int, fn *Function, originalData []byte, err error)
WriteBreakpoint(*Breakpoint) error
EraseBreakpoint(*Breakpoint) error
}