This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
[PATCH] Use abs pathnames setting *_LIBRARY
- To: Insight Maling List <insight at sources dot redhat dot com>
- Subject: [PATCH] Use abs pathnames setting *_LIBRARY
- From: Keith Seitz <keiths at cygnus dot com>
- Date: Thu, 16 Aug 2001 10:39:54 -0700 (PDT)
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\