Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Behaviour of invalid varobjs
@ 2007-03-18 10:40 Vladimir Prus
  2007-03-22 10:32 ` Nick Roberts
  0 siblings, 1 reply; 6+ messages in thread
From: Vladimir Prus @ 2007-03-18 10:40 UTC (permalink / raw)
  To: gdb


I think current mainline does something strange
about varobjs that cannot be evaluated:

        -var-create null_ptr * **0
        ^done,name="null_ptr",numchild="0",value="0",type="int"
        (gdb)
        -var-update null_ptr
        ^done,changelist=[{name="null_ptr",in_scope="false"}]

First, the value of "**0" is not 0, in fact there's no value at all.
Second, given that nothing was changed between the two commands,
it's strange that 'null_ptr' is mentioned in -var-update.

Before I go changing code, do everybody agree that:

1. The output of -var-create should either have no "value"
field at all, or value="", as is used in some other context.
2. The output of -var-update should not include anything.

Also, we probably should include in_scope="false" in output of
-var-create, but I'm not quite sure.

Comments?

- Volodya






^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-03-25 12:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-18 10:40 Behaviour of invalid varobjs Vladimir Prus
2007-03-22 10:32 ` Nick Roberts
2007-03-22 10:41   ` Vladimir Prus
2007-03-22 23:53     ` Nick Roberts
2007-03-25 10:30       ` Vladimir Prus
2007-03-25 12:03         ` Nick Roberts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox