From: Tom Tromey <tromey@adacore.com>
To: gdb-patches@sourceware.org
Cc: Tom Tromey <tromey@adacore.com>
Subject: [PATCH] Boolify gdbserver_windows_process::child_initialization_done
Date: Wed, 2 Sep 2026 10:36:11 -0600 [thread overview]
Message-ID: <20260902163611.3526083-1-tromey@adacore.com> (raw)
This changes gdbserver_windows_process::child_initialization_done to
be a boolean.
---
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
--
2.55.0
next reply other threads:[~2026-09-02 16:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-02 16:36 Tom Tromey [this message]
2026-09-02 17:55 ` Tom de Vries
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=20260902163611.3526083-1-tromey@adacore.com \
--to=tromey@adacore.com \
--cc=gdb-patches@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