This is the mail archive of the insight-prs@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

insight/60: gdb `cd' doesn't notify Tcl



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]