public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Jon Turney <jon.turney@dronecode.org.uk>
To: Tom Tromey <tromey@adacore.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH 2/2] Use subclasses of windows_process_info
Date: Sun, 12 Jun 2022 17:28:43 +0100	[thread overview]
Message-ID: <491947bf-73ab-d9db-47cd-e66f5ecc2e3e@dronecode.org.uk> (raw)
In-Reply-To: <20220407195606.1847158-3-tromey@adacore.com>

On 07/04/2022 20:56, Tom Tromey via Gdb-patches wrote:
> This changes windows_process_info to use virtual methods for its
> callbacks, and then changes the two clients of this code to subclass
> this class to implement the methods.
> 
> I considered using CRTP here, but that would require making the new
> structures visible to the compilation of of nat/windows-nat.c.  This
> seemed like a bit of a pain, so I didn't do it.
> 
> This change then lets us change all the per-inferior globals to be
> members of the new subclass.  Note that there can still only be a
> single inferior -- currently there's a single global of the new type.
> This is just another step toward possibly implementing multi-inferior
> for Windows.
> 
> It's possible this could be cleaned up further... ideally I'd like to
> move more of the data into the base class.  However, because gdb
> supports Cygwin and gdbserver dose not, and because I don't have a way
> to build or test Cygwin, larger refactorings are difficult.

Understandably, without that capability, this change breaks building on 
Cygwin. I've sent a patch to fix that.

If you explain what the difficulties are with building for and testing 
on Cygwin are, I may be able help you.


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

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-07 19:56 [PATCH 0/2] More Windows globals cleanups Tom Tromey
2022-04-07 19:56 ` [PATCH 1/2] Turn some windows-nat.c static functions into methods Tom Tromey
2022-04-07 19:56 ` [PATCH 2/2] Use subclasses of windows_process_info Tom Tromey
2022-06-12 16:27   ` [PATCH] Fix Cygwin build after 20489cca Jon Turney
2022-11-02 14:39     ` Jon Turney
2022-06-12 16:28   ` Jon Turney [this message]
2022-06-07 18:15 ` [PATCH 0/2] More Windows globals cleanups Tom Tromey

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=491947bf-73ab-d9db-47cd-e66f5ecc2e3e@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).