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]

[PATCH] Use abs pathnames setting *_LIBRARY


Hi,

This patch fixes a little problem encountered while running insight from
the build directory. If you've tried to run insight since yesterday's
update and have been noticing some strange behavior, this is the patch for
you.

Keith

ChangeLog
2001-08-16  Keith Seitz  <keiths@redhat.com>

	* generic/gdbtk.c (gdbtk_init): Make sure we're working with
	absolute pathnames in the *_LIBRAY variables.

Patch
Index: generic/gdbtk.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk.c,v
retrieving revision 1.16
diff -u -p -r1.16 gdbtk.c
--- gdbtk.c	2001/08/15 21:13:56	1.16
+++ gdbtk.c	2001/08/16 17:37:57
@@ -410,6 +410,10 @@ gdbtk_init (argv0)

       static char set_libs_path_script[] = "\
 	  set srcDir [file dirname [file dirname $env(TCL_LIBRARY)]];\n\
+          set cwd [pwd]\n\
+          cd $srcDir\n\
+          set srcDir [pwd]\n\
+          cd $cwd\n\
 \
 	  if {![info exists env(TCL_LIBRARY)]} {\n\
 	      set env(TCL_LIBRARY) [file join $srcDir tcl library]\n\


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