summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--unix/Makefile.in12
-rw-r--r--win/Makefile.in10
3 files changed, 26 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 87ef0f0..5d93b96 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-11-10 Mo DeJong <mdejong@users.sourceforge.net>
+
+ * unix/Makefile.in:
+ * win/Makefile.in: Add "make gdb" target. This target
+ can run wish inside either gdb or insight.
+
2001-11-09 Jeff Hobbs <jeffh@ActiveState.com>
* unix/configure:
diff --git a/unix/Makefile.in b/unix/Makefile.in
index 4b1f53e..541f74b 100644
--- a/unix/Makefile.in
+++ b/unix/Makefile.in
@@ -5,7 +5,7 @@
# "autoconf" program (constructs like "@foo@" will get replaced in the
# actual Makefile.
#
-# RCS: @(#) $Id: Makefile.in,v 1.55 2001/11/09 07:14:23 mdejong Exp $
+# RCS: @(#) $Id: Makefile.in,v 1.56 2001/11/11 03:21:24 mdejong Exp $
# Current Tk version; used in various names.
@@ -468,6 +468,16 @@ shell: wish
TK_LIBRARY=@TK_SRC_DIR@/library; export TK_LIBRARY; \
./wish $(SCRIPT)
+# This target can be used to run wish inside either gdb or insight
+gdb: wish
+ @echo "set env LD_LIBRARY_PATH=`pwd`:${TCL_BIN_DIR}:${LD_LIBRARY_PATH}" > gdb.run
+ @echo "set env LIBPATH=`pwd`:${TCL_BIN_DIR}:${LIBPATH}" >> gdb.run
+ @echo "set env SHLIB_PATH=`pwd`:${TCL_BIN_DIR}:${SHLIB_PATH}" >> gdb.run
+ @echo "set env TCL_LIBRARY=@TCL_SRC_DIR@/library" >> gdb.run
+ @echo "set env TK_LIBRARY=@TK_SRC_DIR@/library" >> gdb.run
+ gdb ./wish --command=gdb.run
+ rm gdb.run
+
install: all install-binaries install-libraries install-demos install-doc
# Note: before running ranlib below, must cd to target directory because
diff --git a/win/Makefile.in b/win/Makefile.in
index 6f81cd4..c8b4c4c 100644
--- a/win/Makefile.in
+++ b/win/Makefile.in
@@ -4,7 +4,7 @@
# "autoconf" program (constructs like "@foo@" will get replaced in the
# actual Makefile.
#
-# RCS: @(#) $Id: Makefile.in,v 1.44 2001/09/10 03:23:54 mdejong Exp $
+# RCS: @(#) $Id: Makefile.in,v 1.45 2001/11/11 03:21:24 mdejong Exp $
TCLVERSION = @TCL_VERSION@
VERSION = @TK_VERSION@
@@ -397,6 +397,14 @@ shell: $(WISH)
PATH="$(PATH):$(TCL_BIN_DIR)"; export PATH; \
./$(WISH) $(SCRIPT)
+# This target can be used to run wish inside either gdb or insight
+gdb: $(WISH)
+ @echo "set env TCL_LIBRARY=$(TCL_SRC_DIR_NATIVE)/library" > gdb.run
+ @echo "set env TK_LIBRARY=$(ROOT_DIR_NATIVE)/library" >> gdb.run
+ PATH="$(PATH):$(TCL_BIN_DIR)"; export PATH; \
+ gdb ./$(WISH) --command=gdb.run
+ rm gdb.run
+
install: all install-binaries install-libraries install-doc install-demos
install-binaries: binaries