This is the mail archive of the
insight-prs@sources.redhat.com
mailing list for the Insight project.
insight/60: gdb `cd' doesn't notify Tcl
- To: insight-gnats at sourceware dot cygnus dot com
- Subject: insight/60: gdb `cd' doesn't notify Tcl
- From: tromey at redhat dot com
- Date: 28 Nov 2000 15:53:16 -0000
- Reply-To: tromey at redhat dot com
>Number: 60
>Category: insight
>Synopsis: gdb `cd' doesn't notify Tcl
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Nov 28 08:03:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Tom Tromey
>Release: unknown-1.0
>Organization:
>Environment:
>Description:
If I change the directory using the gdb `cd' command,
Tcl isn't notified of the change.
Try this:
* Run insight, bring up console window
* pwd
* tk pwd
* cd somewhere else
* pwd
* tk pwd
Note that the second `tk pwd' uses the old directory name.
Internally Tcl caches the directory name. I think this
might be a bug in Tcl - there is no way for a Tcl program
to notify Tcl of the directory change other than by
calling Tcl_Eval("cd ...").
This is only a minor annoyance. Still, it would be cleaner
if Tcl and gdb shared state here.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: