mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 09:46:56 +08:00
Remove unused 'singleStepping' state on Process
We don't care, at the process level, whether or not we're single stepping. That state is really only relevant at the thread level.
This commit is contained in:
@ -40,7 +40,6 @@ type Process struct {
|
||||
frameEntries frame.FrameDescriptionEntries
|
||||
lineInfo *line.DebugLineInfo
|
||||
firstStart bool
|
||||
singleStepping bool
|
||||
os *OSProcessDetails
|
||||
arch Arch
|
||||
ast *source.Searcher
|
||||
@ -386,8 +385,6 @@ func (dbp *Process) Continue() error {
|
||||
// Single step, will execute a single instruction.
|
||||
func (dbp *Process) Step() (err error) {
|
||||
fn := func() error {
|
||||
dbp.singleStepping = true
|
||||
defer func() { dbp.singleStepping = false }()
|
||||
for _, th := range dbp.Threads {
|
||||
if th.blocked() {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user