Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: Tom Tromey <tromey@adacore.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Boolify gdbserver_windows_process::child_initialization_done
Date: Wed, 2 Sep 2026 19:55:28 +0200	[thread overview]
Message-ID: <b62a2d46-c581-4337-bb4f-16bbc4ca51bd@suse.de> (raw)
In-Reply-To: <20260902163611.3526083-1-tromey@adacore.com>

On 9/2/26 6:36 PM, Tom Tromey wrote:
> This changes gdbserver_windows_process::child_initialization_done to
> be a boolean.

LGTM.

Approved-By: Tom de Vries <tdevries@suse.de>

Thanks,
- Tom

> ---
>   gdbserver/win32-low.cc | 4 ++--
>   gdbserver/win32-low.h  | 4 ++--
>   2 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/gdbserver/win32-low.cc b/gdbserver/win32-low.cc
> index 13c14a7c69f..2cb5ab5d170 100644
> --- a/gdbserver/win32-low.cc
> +++ b/gdbserver/win32-low.cc
> @@ -317,7 +317,7 @@ do_initial_child_stuff (HANDLE proch, DWORD pid, int attached)
>   
>     proc = add_process (pid, attached);
>     child_init_thread_list ();
> -  windows_process.child_initialization_done = 0;
> +  windows_process.child_initialization_done = false;
>   
>     if (the_low_target.initial_stuff != NULL)
>       (*the_low_target.initial_stuff) (proc);
> @@ -373,7 +373,7 @@ do_initial_child_stuff (HANDLE proch, DWORD pid, int attached)
>       = inferior_started_by_cygwin (pid, attached);
>   #endif
>   
> -  windows_process.child_initialization_done = 1;
> +  windows_process.child_initialization_done = true;
>   }
>   
>   /* Resume all artificially suspended threads if we are continuing
> diff --git a/gdbserver/win32-low.h b/gdbserver/win32-low.h
> index 439adb84bc2..443af62c9c7 100644
> --- a/gdbserver/win32-low.h
> +++ b/gdbserver/win32-low.h
> @@ -197,9 +197,9 @@ struct gdbserver_windows_process : public windows_nat::windows_process_info
>     /* True if current_process_handle needs to be closed.  */
>     bool open_process_used = false;
>   
> -  /* Zero during the child initialization phase, and nonzero
> +  /* False during the child initialization phase, and true
>        otherwise.  */
> -  int child_initialization_done = 0;
> +  bool child_initialization_done = false;
>   };
>   
>   /* The sole Windows process.  */
> 
> base-commit: 49c379f8c2f8ff888b621b4a070dc1976b942577


      reply	other threads:[~2026-09-02 17:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-02 16:36 Tom Tromey
2026-09-02 17:55 ` Tom de Vries [this message]

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=b62a2d46-c581-4337-bb4f-16bbc4ca51bd@suse.de \
    --to=tdevries@suse.de \
    --cc=gdb-patches@sourceware.org \
    --cc=tromey@adacore.com \
    /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