Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <vladimir@codesourcery.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] Remove unnecessary target defaults.
Date: Fri, 15 Aug 2008 15:02:00 -0000	[thread overview]
Message-ID: <200808151902.07713.vladimir@codesourcery.com> (raw)
In-Reply-To: <200808151552.19945.pedro@codesourcery.com>

On Friday 15 August 2008 18:52:19 Pedro Alves wrote:
> On Friday 15 August 2008 15:40:53, Vladimir Prus wrote:
> 
> > > It sounds sound to me.  This would be like a generalised version of
> > > inf-child.c, from which all targets that can have execution
> > > inherit.
> >
> > Well, actually, I meant implementing target_can_async_p in such a way that
> > it:
> >
> > - iterates over all targets
> > - breaks after it examines a target at process stratum
> >
> 
> Should work too...
> 
> > Of course, we can also have a common target, but it would require manually
> > adjusting all target on process stratum.
> 
> ... yeah.  I keep meaning to try adding a base target from which all
> targets inherit, so we could perhaps get rid of this INHERIT + 
> de_fault business, and I somehow thought you could read minds.  Well,
> you do, but you set it to block dumb ideas.  :-)

In fact, I cannot shake the feeling that current target stack is several
designs lumped together, and it would be beneficial to switch to a more coherent
design, where, in particular:

- there's base target every other target derives from and most methods of the base
target forward to the target beneath
- dummy target catches all methods
- all INHERIT and de_fault code is removed
- all target_xxx methods (iterating over target stack) are removed, or make just call
current_target->xxx

But this is fairly large thing to do.

- Volodya


  reply	other threads:[~2008-08-15 15:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-15 12:46 Vladimir Prus
2008-08-15 13:08 ` Pedro Alves
2008-08-15 14:16   ` Vladimir Prus
2008-08-15 14:31     ` Pedro Alves
2008-08-15 14:41       ` Vladimir Prus
2008-08-15 14:52         ` Pedro Alves
2008-08-15 15:02           ` Vladimir Prus [this message]
2008-08-15 15:11             ` Pedro Alves
2008-08-16 20:15 ` Daniel Jacobowitz

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=200808151902.07713.vladimir@codesourcery.com \
    --to=vladimir@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@codesourcery.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