Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Greg Watson <g.watson@computer.org>
Cc: Vladimir Prus <ghost@cs.msu.su>, gdb-patches@sources.redhat.com
Subject: Re: MI: frozen variable objects
Date: Fri, 17 Nov 2006 15:15:00 -0000	[thread overview]
Message-ID: <20061117151519.GA31319@nevyn.them.org> (raw)
In-Reply-To: <37D0E16F-2E33-47F4-9121-FC9125174F20@computer.org>

On Fri, Nov 17, 2006 at 08:09:12AM -0700, Greg Watson wrote:
> I agree that gdb should be where the actual check for value change is  
> done. Maybe I'm missing something here, but I still don't understand  
> the reason for requiring frozen values to be implemented in gdb. Is  
> it just to allow your GUI to issue a single '-var-update *' each time  
> the debugger suspends? In other words, you're implementing additional  
> functionality in gdb to support this operation for the GUI.

That's one reason.  The other is that -var-list-children --all-values
shouldn't read it either.  Yes, a GUI could avoid that operation too;
but offering them when they're dangerous to use seems very unwise.

Isn't all of varobj an additional functionality to support GUI
operations?

> In our  
> GUI (Eclipse-based, but not CDT), we have a class representing each  
> variable, and a variable manager that is responsible for deciding  
> which variables to check for updates. If a particular variable is not  
> visible in the UI, or does not have some other condition on it, then  
> we simple do not issue a -var-update command for that variable at  
> all. It should be trivial to provide a 'read-sensitive' flag in the  
> variable attributes that is read by the GUI when the variable is  
> created, and it would never issue a -var-update for that variable.  

True.  If your GUI doesn't use any of the problematic commands, then
there's no bug - seems like a trivial reduction to me.

> Incidentally, we moved away from the '-var-update *' approach because  
> it causes gdb 6.5 to crash in certain situations under Linux.

I hope you'll forgive me for saying that that's infuriating behavior.
The CDT developers seem to do it too.  I don't believe you've reported
this bug; therefore it will never be fixed, and folklore will
propogate that -var-update * is unusable.

Please report bugs!

I realize our bug tracker doesn't have the timeliest response.  With
only volunteers to work with, we do what we can, but I try to make sure
that the important ones get fixed.  And the very best thing you can do
with a bug report is to include details and a testcase.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2006-11-17 15:15 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-16 12:48 Vladimir Prus
2006-11-16 13:58 ` Greg Watson
2006-11-16 15:25   ` Frederic RISS
2006-11-16 15:55     ` Daniel Jacobowitz
2006-11-16 16:26       ` Frederic RISS
2006-11-16 16:34         ` Daniel Jacobowitz
2006-11-17 15:21       ` Greg Watson
2006-11-16 18:55     ` Vladimir Prus
2006-11-16 21:36       ` Frédéric Riss
2006-11-17  6:17         ` Vladimir Prus
2006-11-17  8:54           ` Frederic RISS
2006-11-16 18:47   ` Vladimir Prus
2006-11-17 15:09     ` Greg Watson
2006-11-17 15:15       ` Daniel Jacobowitz [this message]
2006-11-17 15:26         ` Greg Watson
2006-11-17 15:33           ` Daniel Jacobowitz
2006-11-17 15:41             ` Greg Watson
2006-11-17 15:45               ` Daniel Jacobowitz
2006-11-17 18:16               ` Daniel Jacobowitz
2006-11-17 15:35         ` Greg Watson
2006-11-17 15:27       ` Vladimir Prus
2006-11-16 21:53 Nick Roberts
2006-11-16 22:00 ` Daniel Jacobowitz
2006-11-16 23:07   ` Nick Roberts
2006-11-17 15:19     ` Daniel Jacobowitz
2006-11-17 20:52       ` Nick Roberts
2006-11-17 21:05         ` Daniel Jacobowitz
2006-11-17 23:12           ` Nick Roberts
2006-11-18 11:00           ` Eli Zaretskii
2006-11-17  6:25 ` Vladimir Prus
2006-11-17 18:14 ` Daniel Jacobowitz
2006-11-18  6:59 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=20061117151519.GA31319@nevyn.them.org \
    --to=drow@false.org \
    --cc=g.watson@computer.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=ghost@cs.msu.su \
    /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