diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2010-04-01 07:40:51 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2010-04-01 07:40:51 (GMT) |
commit | bf0dfb3d0e7d433a7cb02ef0eb6ef246f3269b62 (patch) | |
tree | 1fd88c86ec215bda561c49a13b0b95923e5857a1 /Makefile.pre.in | |
parent | a01da93d855de043e3ae3a8478318f3fe099a728 (diff) | |
download | cpython-bf0dfb3d0e7d433a7cb02ef0eb6ef246f3269b62.zip cpython-bf0dfb3d0e7d433a7cb02ef0eb6ef246f3269b62.tar.gz cpython-bf0dfb3d0e7d433a7cb02ef0eb6ef246f3269b62.tar.bz2 |
Issue #8032: For gdb7, a python-gdb.py file is added to the build,
allowing to use advanced gdb features when debugging Python.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index 3a1d381..766398a 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -360,7 +360,7 @@ LIBRARY_OBJS= \ # Default target all: build_all -build_all: $(BUILDPYTHON) oldsharedmods sharedmods +build_all: $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks # Compile a binary with gcc profile guided optimization. profile-opt: @@ -433,6 +433,16 @@ libpython$(VERSION).dylib: $(LIBRARY_OBJS) libpython$(VERSION).sl: $(LIBRARY_OBJS) $(LDSHARED) $(LDFLAGS) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST) +# Copy up the gdb python hooks into a position where they can be automatically +# loaded by gdb during Lib/test/test_gdb.py +# +# Distributors are likely to want to install this somewhere else e.g. relative +# to the stripped DWARF data for the shared library. +gdbhooks: $(BUILDPYTHON)-gdb.py + +$(BUILDPYTHON)-gdb.py: Tools/gdb/libpython.py + $(INSTALL_SCRIPT) $< $(BUILDPYTHON)-gdb.py + # This rule is here for OPENSTEP/Rhapsody/MacOSX. It builds a temporary # minimal framework (not including the Lib directory and such) in the current # directory. @@ -1238,5 +1248,6 @@ Python/thread.o: @THREADHEADERS@ .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools .PHONY: frameworkaltinstallunixtools recheck autoconf clean clobber distclean .PHONY: smelly funny patchcheck +.PHONY: gdbhooks # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |