aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-04-23 16:20:13 +0000
committerDoug Evans <dje@google.com>2010-04-23 16:20:13 +0000
commit8a1ea21f7e299173e51bd45e8981ea107ebf0952 (patch)
tree1cc7c7fa8492ea30fb26ab0167739df59bb2d743 /gdb/Makefile.in
parentc8551de35c952a01283328a3f14dbb5195769815 (diff)
downloadgdb-8a1ea21f7e299173e51bd45e8981ea107ebf0952.zip
gdb-8a1ea21f7e299173e51bd45e8981ea107ebf0952.tar.gz
gdb-8a1ea21f7e299173e51bd45e8981ea107ebf0952.tar.bz2
Add support for auto-loading scripts from .debug_gdb_scripts section.
* NEWS: Add entry for .debug_gdb_scripts. * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o. (SUBDIR_PYTHON_SRCS): Add py-auto-load.c. (py-auto-load.o): New rule. * cli/cli-cmds.c (find_and_open_script): Make externally visible. * cli/cli-cmds.h (find_and_open_script): Update prototype. * python/py-auto-load.c: New file. * python/python-internal.h: #include <stdio.h>. (set_python_list, show_python_list): Declare. (gdbpy_initialize_auto_load): Declare. (source_python_script_for_objfile): Declare. * python/python.c: Remove #include of observer.h. (gdbpy_auto_load): Moved to py-auto-load.c. (GDBPY_AUTO_FILENAME): Ditto. (gdbpy_new_objfile): Delete. (source_python_script_for_objfile): New function. (set_python_list, show_python_list): Make externally visible. (_initialize_python): Move "auto-load" command to py-auto-load.c and observer_attach_new_objfile to py-auto-load.c. doc/ * gdb.texinfo (Python): Move Auto-loading section here ... (Python API): from here. (Auto-loading): Add docs for .debug_gdb_scripts auto-loaded scripts. (Maintenance Commands): Add docs for "maint print section-scripts". testsuite/ * gdb.python/py-section-script.c: New file. * gdb.python/py-section-script.exp: New file. * gdb.python/py-section-script.py: New file.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r--gdb/Makefile.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index fc16fbf..d62dc63 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -267,6 +267,7 @@ SUBDIR_TUI_CFLAGS= \
#
SUBDIR_PYTHON_OBS = \
python.o \
+ py-auto-load.o \
py-block.o \
py-breakpoint.o \
py-cmd.o \
@@ -283,6 +284,7 @@ SUBDIR_PYTHON_OBS = \
py-value.o
SUBDIR_PYTHON_SRCS = \
python/python.c \
+ python/py-auto-load.c \
python/py-block.c \
python/py-breakpoint.c \
python/py-cmd.c \
@@ -1986,6 +1988,10 @@ python.o: $(srcdir)/python/python.c
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/python.c
$(POSTCOMPILE)
+py-auto-load.o: $(srcdir)/python/py-auto-load.c
+ $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-auto-load.c
+ $(POSTCOMPILE)
+
py-block.o: $(srcdir)/python/py-block.c
$(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-block.c
$(POSTCOMPILE)