public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: "Fred Young" <fred@nextnewgig.com>
To: <insight@sources.redhat.com>
Subject: Editing in a watch window
Date: Thu, 06 Jun 2002 13:22:00 -0000	[thread overview]
Message-ID: <0ddc01c20d97$cfe96f00$6401c80a@waterloo.nextnewgig.com> (raw)

I'm running Insight version 5.1 under Cygwin.

When I open the Watch window, add a structured local variable, double click
on a field to modify its value and press Enter, I get a dialog box with the
title:
    Error in Expression
and contents:
    No symbol "MAIN__" in current context.

The name in quotes seems to vary, but it's not the name of the local
variable; it seems to be the last name not found in a symbol table search.
For example if I enter the command
    p Foo
in the Console window and then attempt to edit the field value in the Watch
window again, the error message now becomes:
    No symbol "Foo" in current context.

Interestingly, if I add a global int variable to the Watch window then I can
edit the field of the local variable in the Watch window successfully.

I've determined that the following lines in the method changeValue in the
file variables.tcl are responsible for the dialog box:

 if {[catch {$EditEntry value $new} errTxt]} {
     tk_messageBox -icon error -type ok -message $errTxt \
  -title "Error in Expression" -parent [winfo toplevel $itk_interior]

but I don't know how to debug the problem any further.


             reply	other threads:[~2002-06-06 20:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-06 13:22 Fred Young [this message]
2002-06-11 10:19 ` Keith Seitz

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='0ddc01c20d97$cfe96f00$6401c80a@waterloo.nextnewgig.com' \
    --to=fred@nextnewgig.com \
    --cc=insight@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).