Kaydet (Commit) bf0dfb3d authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Issue #8032: For gdb7, a python-gdb.py file is added to the build,

allowing to use advanced gdb features when debugging Python.
üst a01da93d
...@@ -14,6 +14,7 @@ platform ...@@ -14,6 +14,7 @@ platform
pyconfig.h pyconfig.h
libpython*.a libpython*.a
python.exe python.exe
python-gdb.py
reflog.txt reflog.txt
tags tags
TAGS TAGS
......
...@@ -30,6 +30,7 @@ Modules/Setup.local ...@@ -30,6 +30,7 @@ Modules/Setup.local
Modules/config.c Modules/config.c
Parser/pgen Parser/pgen
core core
python-gdb.py
syntax: glob syntax: glob
libpython*.a libpython*.a
......
This diff is collapsed.
# Sample script for use by test_gdb.py
def foo(a, b, c):
bar(a, b, c)
def bar(a, b, c):
baz(a, b, c)
def baz(*args):
print(42)
foo(1, 2, 3)
...@@ -360,7 +360,7 @@ LIBRARY_OBJS= \ ...@@ -360,7 +360,7 @@ LIBRARY_OBJS= \
# Default target # Default target
all: build_all all: build_all
build_all: $(BUILDPYTHON) oldsharedmods sharedmods build_all: $(BUILDPYTHON) oldsharedmods sharedmods gdbhooks
# Compile a binary with gcc profile guided optimization. # Compile a binary with gcc profile guided optimization.
profile-opt: profile-opt:
...@@ -433,6 +433,16 @@ libpython$(VERSION).dylib: $(LIBRARY_OBJS) ...@@ -433,6 +433,16 @@ libpython$(VERSION).dylib: $(LIBRARY_OBJS)
libpython$(VERSION).sl: $(LIBRARY_OBJS) libpython$(VERSION).sl: $(LIBRARY_OBJS)
$(LDSHARED) $(LDFLAGS) -o $@ $(LIBRARY_OBJS) $(MODLIBS) $(SHLIBS) $(LIBC) $(LIBM) $(LDLAST) $(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 # This rule is here for OPENSTEP/Rhapsody/MacOSX. It builds a temporary
# minimal framework (not including the Lib directory and such) in the current # minimal framework (not including the Lib directory and such) in the current
# directory. # directory.
...@@ -1238,5 +1248,6 @@ Python/thread.o: @THREADHEADERS@ ...@@ -1238,5 +1248,6 @@ Python/thread.o: @THREADHEADERS@
.PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools .PHONY: frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools
.PHONY: frameworkaltinstallunixtools recheck autoconf clean clobber distclean .PHONY: frameworkaltinstallunixtools recheck autoconf clean clobber distclean
.PHONY: smelly funny patchcheck .PHONY: smelly funny patchcheck
.PHONY: gdbhooks
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
...@@ -481,6 +481,7 @@ Tim MacKenzie ...@@ -481,6 +481,7 @@ Tim MacKenzie
Nick Maclaren Nick Maclaren
Steve Majewski Steve Majewski
Grzegorz Makarewicz Grzegorz Makarewicz
David Malcolm
Ken Manheimer Ken Manheimer
Vladimir Marangozov Vladimir Marangozov
David Marek David Marek
......
...@@ -155,6 +155,9 @@ Tools/Demos ...@@ -155,6 +155,9 @@ Tools/Demos
Build Build
----- -----
- Issue #8032: For gdb7, a python-gdb.py file is added to the build,
allowing to use advanced gdb features when debugging Python.
- Issue #1628484: The Makefile doesn't ignore the CFLAGS environment - Issue #1628484: The Makefile doesn't ignore the CFLAGS environment
variable anymore. It also forwards the LDFLAGS settings to the linker variable anymore. It also forwards the LDFLAGS settings to the linker
when building a shared library. when building a shared library.
......
...@@ -20,6 +20,9 @@ faqwiz FAQ Wizard. ...@@ -20,6 +20,9 @@ faqwiz FAQ Wizard.
freeze Create a stand-alone executable from a Python program. freeze Create a stand-alone executable from a Python program.
gdb Python code to be run inside gdb, to make it easier to
debug Python itself (by David Malcolm).
i18n Tools for internationalization. pygettext.py i18n Tools for internationalization. pygettext.py
parses Python source code and generates .pot files, parses Python source code and generates .pot files,
and msgfmt.py generates a binary message catalog and msgfmt.py generates a binary message catalog
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment