]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/go, misc: switch from breakpoint to SIGUSR2
authorDavid Crawshaw <crawshaw@golang.org>
Sun, 8 Jan 2017 01:41:00 +0000 (17:41 -0800)
committerDavid Crawshaw <crawshaw@golang.org>
Thu, 12 Jan 2017 15:46:46 +0000 (15:46 +0000)
commit333f764df3d78930a5a3097fc34ac1374b7c3187
tree884ee910c76b2401cea903f92f51b80ac0dd1c90
parent39e31d5ec009037f359ba0ba8ada154ffbbb52d5
cmd/go, misc: switch from breakpoint to SIGUSR2

The iOS test harness has set a breakpoint early in the life of Go
programs so that it can change the current working directory using
information only available from the host debugger. Somewhere in the
upgrade to iOS 10 / XCode 8.2, breakpoints stopped working. This
may be an LLDB bug, or a bug in the ios-deploy LLDB scripts, it's
not clear.

Work around the problem by giving up on breakpoints. Instead, early
in the life of every test binary built for iOS, send (and ignore) a
SIGUSR2 signal. The debugger will catch this, giving the script
go_darwin_arm_exec a chance to change the working directory.

For the iOS builders.

Change-Id: I7476531985217d0c76bc176904c48379210576c2
Reviewed-on: https://go-review.googlesource.com/34926
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
misc/ios/go_darwin_arm_exec.go
src/cmd/go/test.go