Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: Patrick Monnerat <patrick@monnerat.net>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Implement windows_nat_target::stop
Date: Tue, 14 Apr 2026 09:47:41 -0600	[thread overview]
Message-ID: <874ildwnky.fsf@tromey.com> (raw)
In-Reply-To: <20260411143242.143320-2-patrick@monnerat.net> (Patrick Monnerat's message of "Sat, 11 Apr 2026 16:32:43 +0200")

>>>>> "Patrick" == Patrick Monnerat <patrick@monnerat.net> writes:

Patrick> Insight makes a difference between hitting Ctrl-C (that triggers
Patrick> target::pass_ctrlc) and clicking the GUI stop button, triggering
Patrick> target::stop).

I wonder why.

Also I see Insight calls target_stop and not target_stop_and_wait, which
seems a bit weird.

Patrick> As windows_nat did not implement the stop method, the GUI stop button
Patrick> was inoperant on Windows.

Patrick> +void
Patrick> +windows_nat_target::stop (ptid_t ptid)
Patrick> +{
Patrick> +  interrupt ();
Patrick> +}

I don't really know the contract here but is interrupt guaranteed to
stop PTID?  Like is the relevant inferior always selected?  How does
this interact with non-stop?

Right now it's probably somewhat moot but there's ongoing work for
non-stop and multi-inferior on Windows.

Tom

  reply	other threads:[~2026-04-14 15:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-11 14:32 Patrick Monnerat
2026-04-14 15:47 ` Tom Tromey [this message]
2026-04-15 12:55   ` Patrick Monnerat

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=874ildwnky.fsf@tromey.com \
    --to=tom@tromey.com \
    --cc=gdb-patches@sourceware.org \
    --cc=patrick@monnerat.net \
    /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