Correctly handle hardware breakpoints across threads

* Set hardware breakpoints on all existing threads
* Set hardware breakpoints on any new thread the spawns

Fixes #111
This commit is contained in:
Derek Parker
2015-06-11 22:46:06 -05:00
parent d66dfbef54
commit 3fba1f7113
6 changed files with 28 additions and 18 deletions

View File

@ -1,8 +1,8 @@
// fix lines
package main
import (
"fmt"
"runtime"
"time"
)
@ -46,3 +46,8 @@ func main() {
func testgoroutine(foo int, d chan int) {
d <- foo
}
func init() {
runtime.LockOSThread()
runtime.GOMAXPROCS(4)
}