Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Hannes Domani <ssbssa@yahoo.de>
To: Hannes Domani via Gdb-patches <gdb-patches@sourceware.org>,
	 Tom Tromey <tom@tromey.com>
Subject: Re: [PATCH] Fix ctrl-c when debugging WOW64 processes
Date: Thu, 17 Sep 2020 20:56:38 +0000 (UTC)	[thread overview]
Message-ID: <334596674.1355343.1600376198632@mail.yahoo.com> (raw)
In-Reply-To: <871rj06tub.fsf@tromey.com>

 Am Donnerstag, 17. September 2020, 22:18:01 MESZ hat Tom Tromey <tom@tromey.com> Folgendes geschrieben:

> >>>>> "Hannes" == Hannes Domani via Gdb-patches <gdb-patches@sourceware.org> writes:
>
> Hannes> 2020-09-17  Hannes Domani  <ssbssa@yahoo.de>
>
> Hannes>     * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
> Hannes>     for WOW64 processes.
>
> Does gdbserver need this treatment as well?
> If so maybe this code can be shared.

I thought so, but I just tried it and it works without it.

The reason seems to be that gdbserver first calls GenerateConsoleCtrlEvent(),
and only when that fails falls back to DebugBreakProcess().

When I tried to do the same in gdb just now, it didn't work.
Weird, I will have to investigate this some more.


Hannes


  reply	other threads:[~2020-09-17 20:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200917180337.1984-1-ssbssa.ref@yahoo.de>
2020-09-17 18:03 ` Hannes Domani
2020-09-17 20:00   ` Simon Marchi
2020-09-17 20:23     ` Hannes Domani
2020-09-17 20:17   ` Tom Tromey
2020-09-17 20:56     ` Hannes Domani [this message]
2020-09-18 14:27       ` Hannes Domani
2020-09-18 15:48         ` Simon Marchi
2020-09-18 16:09           ` Hannes Domani

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=334596674.1355343.1600376198632@mail.yahoo.com \
    --to=ssbssa@yahoo.de \
    --cc=gdb-patches@sourceware.org \
    --cc=tom@tromey.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