Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <vladimir@codesourcery.com>
To: gdb@sources.redhat.com
Subject: Re: MI & pretty-printing
Date: Thu, 20 Aug 2009 06:04:00 -0000	[thread overview]
Message-ID: <h6in10$tfi$1@ger.gmane.org> (raw)
In-Reply-To: <m3zl9v8vmf.fsf@fleche.redhat.com>

Tom Tromey wrote:

>>>>>> "Volodya" == Vladimir Prus <vladimir@codesourcery.com> writes:
> 
> Tom> I hesitate to change this because it isn't clear to me that "{...}"
> Tom> is a universally good choice for all GUIs and all printers.
> 
> I'm reconsidering this.  When would the immediate value of a varobj with
> children be of interest?  It certainly doesn't seem to be for
> non-pretty-printed varobjs.

Well, I don't have any case at hand where immediate value would be of
*that* great value. FWIW, when I run into "too long string value"
issue I though about was to have shorter summary for vector, e.g. "[2]",
but then figured it's additional work, and folks did not complain
about "{...}" so far.

> 
> Volodya> Do we have a mechanism how pretty-printer can use different
> Volodya> string rendering for MI and CLI?
> 
> Not at present.  We could add one, of course, but I have been trying to
> push the current simple design as far as it would go.  Partly this is
> just stubbornness but also I do think that simplicity has some intrinsic
> virtue, at least when you can get away with it.

FWIW, I was driving exactly at this simplicity point :-)

> 
> Volodya> And {...}  seems like the most conservative thing
> Volodya> possible. Then, if we run into type that both have children and
> Volodya> have string rendering that makes sense in MI, we can introduce
> Volodya> some solution?
> 
> Yeah.  I'll do this.

Great, thanks!

- Volodya



  reply	other threads:[~2009-08-20  5:30 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-13 17:42 Vladimir Prus
2009-07-14  1:55 ` Nick Roberts
2009-07-15 12:19   ` Vladimir Prus
2009-08-06 21:02 ` Tom Tromey
2009-08-07  5:18   ` Vladimir Prus
2009-08-15 20:43   ` Vladimir Prus
2009-08-17 18:48     ` Tom Tromey
2009-08-18  7:19       ` Vladimir Prus
2009-08-18 18:41         ` Tom Tromey
2009-08-19  6:51           ` Vladimir Prus
2009-08-19 19:50             ` Tom Tromey
2009-08-20  6:04               ` Vladimir Prus [this message]
2009-09-05  9:27   ` Vladimir Prus
2009-09-09 22:34     ` Tom Tromey
2009-09-14 11:19       ` Vladimir Prus

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='h6in10$tfi$1@ger.gmane.org' \
    --to=vladimir@codesourcery.com \
    --cc=gdb@sources.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