This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[patch] catch session cd command
- From: "Martin M. Hunt" <hunt at redhat dot com>
- To: insight at sources dot redhat dot com
- Date: Mon, 6 May 2002 22:13:51 -0700
- Subject: [patch] catch session cd command
- Organization: Red Hat Inc
I checked in this trivial fix. If you debug programs with the same
name in different locations, then remove one, you might see Insight
barf on the cd to a nonexistent directory.
--
Martin Hunt
GDB Engineer
Red Hat, Inc.
2002-05-06 Martin M. Hunt <hunt@redhat.com>
* library/session.tcl (notice_file_change): Catch the
directory change, in case the directory no longer exists.
Index: library/session.tcl
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/session.tcl,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -u -r1.11 -r1.12
--- library/session.tcl 18 Feb 2002 17:19:44 -0000 1.11
+++ library/session.tcl 7 May 2002 05:11:09 -0000 1.12
@@ -244,7 +244,7 @@
}
if {[info exists values(pwd)]} {
- gdb_cmd "cd $values(pwd)"
+ catch {gdb_cmd "cd $values(pwd)"}
}
if {[info exists values(args)]} {