delve/pkg/proc
aarzilli 16d8bd647f proc/*: remove Process.Running
Implementing proc.Process.Running in a thread safe way is complicated
and nothing actually uses it besides tests, so we are better off
rewriting the tests without Running and removing it.

In particular:

* The call to d.target.Running() in service/debugger/debugger.go
  (Restart) can never return true because that line executes while
  holding processMutex and all continue operations are also executed
  while holding processMutex.
* The call to dbp.Running() pkg/proc/native/proc.go (Detach) can never
  return true, because it's only called from
  debugger.(*Debugger).detach() which is also always called while
  holding processMutex.

Since some tests are hard to write correctly without Process.Running a
simpler interface, Process.NotifyResumed, is introduced.

Fixes #830
2017-06-13 08:53:54 +02:00
..
core proc/*: remove Process.Running 2017-06-13 08:53:54 +02:00
gdbserial proc/*: remove Process.Running 2017-06-13 08:53:54 +02:00
native proc/*: remove Process.Running 2017-06-13 08:53:54 +02:00
test proc/gdbserial: mozilla rr support (#804) 2017-05-05 15:17:52 -07:00
arch.go pkg/proc: Fixed delve's version extraction to allow propsals (#798) 2017-04-21 17:45:20 -07:00
bininfo.go proc: refactoring: split backends to separate packages 2017-04-21 14:00:04 -07:00
breakpoints.go proc: next, stepout should work on recursive goroutines (#831) 2017-05-16 11:23:33 -07:00
disasm_amd64.go Minor post-refactoring cleanup (#808) 2017-04-28 10:15:39 -07:00
disasm.go proc: refactoring: merge target into proc 2017-04-21 14:00:04 -07:00
doc.go Move top-level packages into pkg 2017-02-08 12:17:19 -08:00
eval.go proc: next, stepout should work on recursive goroutines (#831) 2017-05-16 11:23:33 -07:00
go_version.go pkg/proc: Fixed delve's version extraction to allow propsals (#798) 2017-04-21 17:45:20 -07:00
interface.go proc/*: remove Process.Running 2017-06-13 08:53:54 +02:00
mem.go proc: refactoring: split backends to separate packages 2017-04-21 14:00:04 -07:00
moduledata.go proc: next, stepout should work on recursive goroutines (#831) 2017-05-16 11:23:33 -07:00
proc_general_test.go proc: refactoring: split backends to separate packages 2017-04-21 14:00:04 -07:00
proc_test.go proc/*: remove Process.Running 2017-06-13 08:53:54 +02:00
proc_unix_test.go proc/*: remove Process.Running 2017-06-13 08:53:54 +02:00
proc.go proc: next, stepout should work on recursive goroutines (#831) 2017-05-16 11:23:33 -07:00
registers.go proc: refactoring: merge target into proc 2017-04-21 14:00:04 -07:00
stack.go proc: next, stepout should work on recursive goroutines (#831) 2017-05-16 11:23:33 -07:00
threads.go proc: next, stepout should work on recursive goroutines (#831) 2017-05-16 11:23:33 -07:00
types.go proc: refactoring: split backends to separate packages 2017-04-21 14:00:04 -07:00
variables.go proc/variables: fill Len field of maps when recursion limit is reached (#834) 2017-05-30 14:26:10 -07:00