Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: nickrob@snap.net.nz, ghost@cs.msu.su, gdb-patches@sources.redhat.com
Subject: Re: MI failures related to string printing
Date: Wed, 17 Jan 2007 22:19:00 -0000	[thread overview]
Message-ID: <20070117221921.GB15116@nevyn.them.org> (raw)
In-Reply-To: <200701172144.l0HLiDuP001951@brahms.sibelius.xs4all.nl>

On Wed, Jan 17, 2007 at 10:44:13PM +0100, Mark Kettenis wrote:
> > We already use the equivalent of "print" to pass the value to the front
> > end when it asks for the variable's value.  What Nick's change did was
> > to use the same code when it asks if the variable's "value" has
> > changed.  I think it's an improvement on that basis alone.
> > 
> > If we wanted printing a char * which doesn't point to a string to stop
> > after one character, we'd need some way to identify strings, which
> > C doesn't really give us.  As long as it's convenient for "print"
> > to dump out the string, I suspect MI ought to too.
> 
> Agreed, at least if you explicitly ask for it.  However, the testsuite
> does something like "-var-update *", which does not seem very explicit
> to me.  Or am I missing something.

It's already asked for a varobj for that particular variable, of type
"char *" - I think the closest analogy is "info locals" here, which
would show the same output.

-- 
Daniel Jacobowitz
CodeSourcery


      reply	other threads:[~2007-01-17 22:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200701121351.29310.vladimir@codesourcery.com>
     [not found] ` <17831.31430.442855.801431@kahikatea.snap.net.nz>
2007-01-16  2:08   ` Vladimir Prus
2007-01-16  5:50     ` Nick Roberts
2007-01-16  6:42       ` Vladimir Prus
2007-01-16 20:44         ` Nick Roberts
2007-01-16 23:06           ` Vladimir Prus
2007-01-17  0:59             ` Nick Roberts
2007-01-17  6:01               ` Daniel Jacobowitz
2007-01-17  8:12                 ` Nick Roberts
2007-01-16 21:23       ` Mark Kettenis
2007-01-16 22:16         ` Nick Roberts
2007-01-17  6:06           ` Daniel Jacobowitz
2007-01-17 21:44             ` Mark Kettenis
2007-01-17 22:19               ` Daniel Jacobowitz [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=20070117221921.GB15116@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=ghost@cs.msu.su \
    --cc=mark.kettenis@xs4all.nl \
    --cc=nickrob@snap.net.nz \
    /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