From: Andrew Cagney <cagney@redhat.com>
To: Sami Wagiaalla <swagiaal@redhat.com>
Cc: frysk <frysk@sources.redhat.com>
Subject: Re: ValueFactory
Date: Fri, 01 Jun 2007 19:05:00 -0000 [thread overview]
Message-ID: <4660468F.4060500@redhat.com> (raw)
In-Reply-To: <46603AE0.2020201@redhat.com>
With the below, a typical use will be:
ValueFactory.getFactory(frame.task.proc).getValue ("a+2", frame)
so short circuit that vis:
ValueFactory
static ValueFactory getFactory(Frame)
Value getValue ("string");
... same for die ...
Andrew
Sami Wagiaalla wrote:
> Okay so here is a skeleton:
>
> // this takes care of the creation of Value object
> public class ValueFactory{
>
> public static ValueFactory getFactory(Proc){
> // check cache and return a ValueFactory
> }
> private ValueFactory(Proc proc){
> }
>
> public Value getValue(String name, Frame currentFrame){
> ...
> }
>
> public Value getValue(DwarfDie die){
> ... }
>
> }
>
> // this is just speculation but can be put either in Value it self or
> in a ValuePrint object
> ...
> public String printValue(Value value){
> }
> ...
>
> How well will the above work for hpd, stack examination, source
> window, DisplayVariable, an any other interested parties :)
>
> Sami
prev parent reply other threads:[~2007-06-01 16:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-01 15:51 ValueFactory Sami Wagiaalla
2007-06-01 16:17 ` ValueFactory Adam Jocksch
2007-06-01 19:05 ` Andrew Cagney [this message]
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=4660468F.4060500@redhat.com \
--to=cagney@redhat.com \
--cc=frysk@sources.redhat.com \
--cc=swagiaal@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).