summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormdejong <mdejong>2001-11-11 03:16:10 (GMT)
committermdejong <mdejong>2001-11-11 03:16:10 (GMT)
commitdc126cb94dc1c1b9f14b7d8217a6f4f4eda653dc (patch)
treed4f4ba2f3e3c2700639ac8ae68a05e95780863ee
parent17ce9d477991552109044d738688f3d156f2f609 (diff)
downloadtcl-dc126cb94dc1c1b9f14b7d8217a6f4f4eda653dc.zip
tcl-dc126cb94dc1c1b9f14b7d8217a6f4f4eda653dc.tar.gz
tcl-dc126cb94dc1c1b9f14b7d8217a6f4f4eda653dc.tar.bz2
* unix/Makefile.in:
* win/Makefile.in: Add "make gdb" target. This target can run tclsh inside either gdb or insight.
-rw-r--r--ChangeLog6
-rw-r--r--unix/Makefile.in11
-rw-r--r--win/Makefile.in8
3 files changed, 23 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 4d9244b..6b3c070 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 tclsh inside either gdb or insight.
+
2001-11-10 David Gravereaux <davygrvy@pobox.com>
* win/makefile.vc: Added a check to make sure one runs the makefile
diff --git a/unix/Makefile.in b/unix/Makefile.in
index c921d91..f7400ab 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.85 2001/11/09 07:11:26 mdejong Exp $
+# RCS: @(#) $Id: Makefile.in,v 1.86 2001/11/11 03:16:10 mdejong Exp $
VERSION = @TCL_VERSION@
@@ -474,6 +474,15 @@ shell: tclsh
TCL_LIBRARY="${TCL_BUILDTIME_LIBRARY}"; export TCL_LIBRARY; \
./tclsh $(SCRIPT)
+# This target can be used to run tclsh inside either gdb or insight
+gdb: tclsh
+ @echo "set env LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}" > gdb.run
+ @echo "set env LIBPATH=`pwd`:${LIBPATH}" >> gdb.run
+ @echo "set env SHLIB_PATH=`pwd`:${SHLIB_PATH}" >> gdb.run
+ @echo "set env TCL_LIBRARY=${TCL_BUILDTIME_LIBRARY}" >> gdb.run
+ gdb ./tclsh --command=gdb.run
+ rm gdb.run
+
# The following target outputs the name of the top-level source directory
# for Tcl (it is used by Tk's configure script, for example). The
# .NO_PARALLEL line is needed to avoid problems under Sun's "pmake".
diff --git a/win/Makefile.in b/win/Makefile.in
index 583a984..127f9df 100644
--- a/win/Makefile.in
+++ b/win/Makefile.in
@@ -5,7 +5,7 @@
# "autoconf" program (constructs like "@foo@" will get replaced in the
# actual Makefile.
#
-# RCS: @(#) $Id: Makefile.in,v 1.56 2001/11/08 03:43:47 mdejong Exp $
+# RCS: @(#) $Id: Makefile.in,v 1.57 2001/11/11 03:16:10 mdejong Exp $
VERSION = @TCL_VERSION@
@@ -549,6 +549,12 @@ shell: $(TCLSH)
@TCL_LIBRARY="$(LIBRARY_DIR)"; export TCL_LIBRARY; \
./$(TCLSH) $(SCRIPT)
+# This target can be used to run tclsh inside either gdb or insight
+gdb: $(TCLSH)
+ @echo "set env TCL_LIBRARY=$(LIBRARY_DIR)" > gdb.run
+ gdb ./tclsh --command=gdb.run
+ rm gdb.run
+
depend:
Makefile: $(SRC_DIR)/Makefile.in