Fix Cygwin build after bcb9251f
authorJon Turney <jon.turney@dronecode.org.uk>
Sun, 12 Jun 2022 15:39:46 +0000 (16:39 +0100)
committerJon Turney <jon.turney@dronecode.org.uk>
Wed, 2 Nov 2022 14:36:14 +0000 (14:36 +0000)
commit559a5ea452455d95ff18736ce6dfa9065427f74e
tree74c716d89647beca8c51bd0df51a3ee710bb6b04
parent39a28a7cf2b3854a9592e1d3d9f675394d4aef6d
Fix Cygwin build after bcb9251f

Absent _UNICODE being defined (which gdb's Makefile doesn't do),
windows.h will always define STARTUPINFO is as STARTUPINFOA, so this
cast isn't correct when create_process expects a STARTUPINFOW
parameter (i.e. in a Cygwin build).

Instead write this as &info_ex.StartupInfo (which is always of the
correct type).
gdb/nat/windows-nat.c