Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Marc Khouzam" <marc.khouzam@ericsson.com>
To: "Eli Zaretskii" <eliz@gnu.org>
Cc: <gdb-patches@sourceware.org>
Subject: RE: [PATCH]: MI -var-set-format
Date: Fri, 25 Jan 2008 15:46:00 -0000	[thread overview]
Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA04290E65@ecamlmw720.eamcs.ericsson.se> (raw)
In-Reply-To: <uodbamdjc.fsf@gnu.org>

 
>> +To know if a variable object or any of its children has changed value in any 
>> +format instead of only the current one, the variable object and all its children
>> +should be in the natural format before issuing the @code{-var-update} command.  
>
>Sorry, I don't understand what this sentence is trying to say.  What
>does it mean ``the object should be in the natural format before
>issuing the command''?  How can an object ``be'' in some format?  

You are right about that.  I should probably refer to 'display format' instead.

>And how would its format help me know that it changed its value?

This is the tricky part.  We had a loooong thread about this but writing it in
one or two sentences was not that easy.  Maybe we should use an example?
I'll explain it in plain text and when we reach an understandable text, I'll attach
a new documentation patch.

In some cases, the displayed value of a variable object may change in some, but 
not all of the possible display formats.  For example, a variable object of 
type 'double', can change natural display from 1.1 to 1.9, while its hexadecimal 
display will remain at 0x1 in both cases.  Therefore, if the variable object has
its current display format set to 'hexadecimal', the -var-update command will not
list this object, as its current display has not changed. 

If a frontend needs -var-update to list 
variable objects for which the value has changed in any format (instead of only 
listing the ones for which the current displayed value has changed), the variable 
object and all its children should have their current display format set to natural 
before issuing the -var-update command.

[We believe that] if any formatted value changes, it guarantees that the natural
format value will also change.


Marc


  reply	other threads:[~2008-01-25 14:16 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-24 21:49 Marc Khouzam
2008-01-25 10:38 ` Eli Zaretskii
2008-01-25 15:46   ` Marc Khouzam [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-05-02  6:19 Nick Roberts
2006-05-05 18:11 ` Daniel Jacobowitz
2006-05-05 23:30   ` Nick Roberts
2006-05-15 17:07     ` Daniel Jacobowitz
2006-05-16  3:46       ` Nick Roberts
2008-01-22 20:13         ` Daniel Jacobowitz
2008-01-23  3:25           ` Nick Roberts
2008-01-23  3:48             ` Daniel Jacobowitz
2008-01-23  6:24               ` Nick Roberts
2008-01-23 13:17                 ` Daniel Jacobowitz
2008-01-23 21:17                   ` Nick Roberts
2008-01-23 21:24                     ` Daniel Jacobowitz
2008-01-23 22:30                       ` Nick Roberts

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=6D19CA8D71C89C43A057926FE0D4ADAA04290E65@ecamlmw720.eamcs.ericsson.se \
    --to=marc.khouzam@ericsson.com \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    /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