]> Cypherpunks repositories - gostls13.git/commit
runtime: set procid on Windows
authorqmuntal <quimmuntal@gmail.com>
Thu, 23 Feb 2023 13:15:28 +0000 (14:15 +0100)
committerQuim Muntal <quimmuntal@gmail.com>
Mon, 27 Feb 2023 20:53:17 +0000 (20:53 +0000)
commit140000dd55d9c4e3058f2b1a2488233a0671dbff
tree2b33bcabb7e3530f480451dc9734a2b98ee7fb3d
parentb611b3a8cc8c4cab3853853a135d5c29e807f513
runtime: set procid on Windows

The runtime-gdb.py script needs procid to be set in order to
map a goroutine ID with an OS thread. The Go runtime is not currently
setting that variable on Windows, so TestGdbPython (and friends) can't
succeed.

This CL initializes procid and unskips gdb tests on Windows.

Fixes #22687
Updates #21380
Updates #22021

Change-Id: Icd1d9fc1764669ed1bf04f53d17fadfd24ac3f30
Reviewed-on: https://go-review.googlesource.com/c/go/+/470596
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Quim Muntal <quimmuntal@gmail.com>
src/runtime/os_windows.go
src/runtime/runtime-gdb_test.go