public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Absolute pathname patch (again)
@ 2001-08-16 16:04 Keith Seitz
  0 siblings, 0 replies; only message in thread
From: Keith Seitz @ 2001-08-16 16:04 UTC (permalink / raw)
  To: Insight Maling List

Hi,

Well, it turns out that my little tweak this morning was a good start, but
still insufficient. You could run insight from the gdb/ directory and
install directory quite reliably. But you could not run the testsuites or
run it from another working directory, i.e., gdb/gdb. Sigh.

This patch should pretty much fix this once and for all. (I hope. ;-)
Keith

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

	* generic/gdbtk.c (gdbtk_init): Revert change from earlier.
	It is insufficient. We must get the absolute pathname
	from autoconf.
	Don't bother setting TCL_LIBRARY: it must be set already
	in order for us to execute a script.

Patch
Index: generic/gdbtk.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk.c,v
retrieving revision 1.17
diff -u -p -r1.17 gdbtk.c
--- gdbtk.c	2001/08/16 17:38:18	1.17
+++ gdbtk.c	2001/08/16 23:03:51
@@ -410,14 +410,6 @@ 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\
-	  }\n\
 \
 	  if {![info exists env(TK_LIBRARY)]} {\n\
 	      set env(TK_LIBRARY) [file join $srcDir tk library]\n\

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-08-16 16:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-16 16:04 [PATCH] Absolute pathname patch (again) Keith Seitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).