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
pyconfig.h
libpython*.a
python.exe
python-gdb.py
reflog.txt
tags
TAGS
......
......@@ -30,6 +30,7 @@ Modules/Setup.local
Modules/config.c
Parser/pgen
core
python-gdb.py
syntax: glob
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= \
# 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
......@@ -481,6 +481,7 @@ Tim MacKenzie
Nick Maclaren
Steve Majewski
Grzegorz Makarewicz
David Malcolm
Ken Manheimer
Vladimir Marangozov
David Marek
......
......@@ -155,6 +155,9 @@ Tools/Demos
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
variable anymore. It also forwards the LDFLAGS settings to the linker
when building a shared library.
......
......@@ -20,6 +20,9 @@ faqwiz FAQ Wizard.
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
parses Python source code and generates .pot files,
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