This is the mail archive of the insight@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]
Other format: [Raw text]

[patch] catch session cd command


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)]} {


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