Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: Pedro Alves <palves@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 2/3] Introduce process_stratum_target
Date: Thu, 29 Nov 2018 18:26:00 -0000	[thread overview]
Message-ID: <87bm67bv0h.fsf@tromey.com> (raw)
In-Reply-To: <20181127202247.7646-3-palves@redhat.com> (Pedro Alves's message	of "Tue, 27 Nov 2018 20:22:46 +0000")

>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

Pedro> This adds a base class that all process_stratum targets inherit from.
Pedro> default_thread_address_space/default_thread_architecture only make
Pedro> sense for process_stratum targets, so they are transformed to
Pedro> process_stratum_target methods/overrides.

Pedro> +  process_stratum_target ()
Pedro> +    : target_ops {}

This struck me as slightly weird -- though not weird enough to block
anything.

What if I added a protected constructor to target_ops that took the
stratum as an argument?  Would there be a problem with that?

Tom


  reply	other threads:[~2018-11-29 18:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-27 20:22 [PATCH 0/3] " Pedro Alves
2018-11-27 20:22 ` [PATCH 1/3] Move test_target_ops to a separate file Pedro Alves
2018-11-27 20:23 ` [PATCH 2/3] Introduce process_stratum_target Pedro Alves
2018-11-29 18:26   ` Tom Tromey [this message]
2018-11-29 23:16     ` Tom Tromey
2018-11-30 14:22     ` Pedro Alves
2018-11-30 15:40       ` Tom Tromey
2018-11-30 17:52         ` Pedro Alves
2018-11-27 20:23 ` [PATCH 3/3] Convert default_child_has_foo functions to process_stratum_target methods Pedro Alves
2018-11-29 18:31   ` Tom Tromey
2018-11-30 16:31     ` Pedro Alves
2018-11-29 18:31 ` [PATCH 0/3] Introduce process_stratum_target 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=87bm67bv0h.fsf@tromey.com \
    --to=tom@tromey.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.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