mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 09:46:56 +08:00
proc/core: return true for calls to Recorded (#2979)
The recent refactoring that introduced ContinueOnceContext broke this old behavior. Fixes #2978
This commit is contained in:
committed by
GitHub
parent
c9d800edb9
commit
55e37e2fc8
@ -248,7 +248,9 @@ func (p *process) WriteBreakpoint(*proc.Breakpoint) error {
|
||||
func (p *process) Recorded() (bool, string) { return true, "" }
|
||||
|
||||
// Restart will only return an error for core files, as they are not executing.
|
||||
func (p *process) Restart(string) (proc.Thread, error) { return nil, ErrContinueCore }
|
||||
func (p *process) Restart(*proc.ContinueOnceContext, string) (proc.Thread, error) {
|
||||
return nil, ErrContinueCore
|
||||
}
|
||||
|
||||
// ChangeDirection will only return an error as you cannot continue a core process.
|
||||
func (p *process) ChangeDirection(proc.Direction) error { return ErrContinueCore }
|
||||
|
||||
Reference in New Issue
Block a user