summaryrefslogtreecommitdiffstats
path: root/unix/Makefile.in
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 /unix/Makefile.in
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.
Diffstat (limited to 'unix/Makefile.in')
-rw-r--r--unix/Makefile.in11
1 files changed, 10 insertions, 1 deletions
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".