Trivial fixes to Cygwin build after 8fea1a81
authorJon Turney <jon.turney@dronecode.org.uk>
Sun, 12 Jun 2022 15:36:58 +0000 (16:36 +0100)
committerJon Turney <jon.turney@dronecode.org.uk>
Sun, 12 Jun 2022 16:01:32 +0000 (17:01 +0100)
* Remove a stray semicolon
* Restore dropped nullptr program argument in use of create_process() under CYGWIN

gdb/nat/windows-nat.c
gdb/windows-nat.c

index 5bd561ae63f263062b64efc8c635dee39ff38f6e..ea6e2980f593bc17e264a7e6ebf9d04750679251 100644 (file)
@@ -877,7 +877,7 @@ create_process (const wchar_t *image, wchar_t *command_line, DWORD flags,
                void *environment, const wchar_t *cur_dir,
                bool no_randomization,
                STARTUPINFOW *startup_info,
-               PROCESS_INFORMATION *process_info);
+               PROCESS_INFORMATION *process_info)
 {
   return create_process_wrapper (CreateProcessW, image, command_line, flags,
                                 environment, cur_dir, no_randomization,
index e156a867c0598a4a7af04a6f9aa5ded3c14bc5ad..9705fa33cc2f52f094d9362224d932ab30d2f6d1 100644 (file)
@@ -2478,7 +2478,7 @@ windows_nat_target::create_inferior (const char *exec_file,
     }
 
   windows_init_thread_list ();
-  ret = create_process (args, flags, w32_env,
+  ret = create_process (nullptr, args, flags, w32_env,
                        inferior_cwd != nullptr ? infcwd : nullptr,
                        disable_randomization,
                        &si, &pi);