delve/_scripts
Alessandro Arzilli f3e76238e3
proc: move breakpoint condition evaluation out of backends (#2628)
* proc: move breakpoint condition evaluation out of backends

Moves breakpoint condition evaluation from the point where breakpoints
are set, inside ContinueOnce, to (*Target).Continue.

This accomplishes three things:

1. the breakpoint evaluation method needs not be exported anymore
2. breakpoint condition evaluation can be done with a full scope,
   containing a Target object, something that wasn't possible before
   because ContinueOnce doesn't have access to the Target object.
3. moves breakpoint condition evaluation out of the critical section
   where some of the threads of the target process might be still
   running.

* proc/native: handle process death during stop() on Windows

It is possible that the thread dies while we are inside the stop()
function. This results in an Access is denied error being returned by
SuspendThread being called on threads that no longer exist.

Delay the reporting the error from SuspendThread until the end of
stop() and only report it if the thread still exists at that point.

Fixes flakyness with TestIssue1101 that was exacerbated by moving
breakpoint condition evaluation outside of the backends.
2021-08-09 10:16:24 -07:00
..
gen-backend_test_health.go _scripts: change gen-backend_test_health.go to be more stable (#2505) 2021-05-25 10:49:46 -07:00
gen-cli-docs.go *: mv scripts _scripts 2020-03-28 20:28:51 +01:00
gen-opcodes.go *: mv scripts _scripts 2020-03-28 20:28:51 +01:00
gen-starlark-bindings.go *: Initial eBPF tracing support (#2625) 2021-07-31 17:16:26 +02:00
gen-travis.go Change TeamCity test matrix and drop appveyor/travis-ci configurations (#2315) 2021-01-25 20:48:27 -08:00
gen-usage-docs.go *: mv scripts _scripts 2020-03-28 20:28:51 +01:00
gencert.sh *: mv scripts _scripts 2020-03-28 20:28:51 +01:00
latestver.py TeamCity: prefer go rc builds over beta (#2619) 2021-07-24 11:14:45 -07:00
make.go proc: move breakpoint condition evaluation out of backends (#2628) 2021-08-09 10:16:24 -07:00
test_linux.sh TeamCity: prefer go rc builds over beta (#2619) 2021-07-24 11:14:45 -07:00
test_mac.sh TeamCity: add go1.17 to test matrix, disable go-tip builds (#2576) 2021-07-12 09:48:11 -07:00
test_windows.ps1 teamcity: report go test exit code on windows (#2638) 2021-08-03 10:42:53 -07:00
testsign *: mv scripts _scripts 2020-03-28 20:28:51 +01:00