mirror of
https://github.com/go-delve/delve.git
synced 2025-10-28 04:35:19 +08:00
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:
@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user