public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jon TURNEY <jturney@sourceware.org>
To: gdb-cvs@sourceware.org
Subject: [binutils-gdb] Trivial fixes to Cygwin build after 8fea1a81
Date: Sun, 12 Jun 2022 16:08:06 +0000 (GMT)	[thread overview]
Message-ID: <20220612160806.94D7A3856DF5@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9dad432e10a94f63fc6b17d729c9cf8726e03dab

commit 9dad432e10a94f63fc6b17d729c9cf8726e03dab
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Sun Jun 12 16:36:58 2022 +0100

    Trivial fixes to Cygwin build after 8fea1a81
    
    * Remove a stray semicolon
    * Restore dropped nullptr program argument in use of create_process() under CYGWIN

Diff:
---
 gdb/nat/windows-nat.c | 2 +-
 gdb/windows-nat.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdb/nat/windows-nat.c b/gdb/nat/windows-nat.c
index 5bd561ae63f..ea6e2980f59 100644
--- a/gdb/nat/windows-nat.c
+++ b/gdb/nat/windows-nat.c
@@ -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,
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index e156a867c05..9705fa33cc2 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -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);


                 reply	other threads:[~2022-06-12 16:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220612160806.94D7A3856DF5@sourceware.org \
    --to=jturney@sourceware.org \
    --cc=gdb-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).