This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/3] Introduce process_stratum_target


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]