public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Editing in a watch window
@ 2002-06-06 13:22 Fred Young
  2002-06-11 10:19 ` Keith Seitz
  0 siblings, 1 reply; 2+ messages in thread
From: Fred Young @ 2002-06-06 13:22 UTC (permalink / raw)
  To: insight

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.


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

* Re: Editing in a watch window
  2002-06-06 13:22 Editing in a watch window Fred Young
@ 2002-06-11 10:19 ` Keith Seitz
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Seitz @ 2002-06-11 10:19 UTC (permalink / raw)
  To: Fred Young; +Cc: insight

On Thu, 6 Jun 2002, Fred Young wrote:

> 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.

I cannot reproduce this at all. Can you send me a testcase?

Keith


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

end of thread, other threads:[~2002-06-11 17:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-06 13:22 Editing in a watch window Fred Young
2002-06-11 10:19 ` Keith Seitz

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).