Skip to content
  • Alessandro Arzilli's avatar
    Miscellaneous fixes for Windows native backend (#2736) · 1893c976
    Alessandro Arzilli authored
    * proc/native: always stop after RequestManualStop on Windows
    
    On Windows RequestManualStop will generate an exception on a special
    DbgUiRemoteBreakin thread, sometimes this thread will die before we
    finish stopping the process. We need to account for that and still stop
    even if the thread is gone and no other thread hit a breakpoint.
    
    Fixes flakiness of TestIssue419.
    
    * proc/native: fix watchpoints with new threads on Windows
    
    When a new thread is created we must reapply all watchpoints to it,
    like we do on linux.
    
    * tests: be lenient on goroutinestackprog tests on Windows
    
    We can not guarantee that we find all goroutines stopped in a good
    place and sometimes the stacktrace fails on Windows.
    1893c976