Add support for auto-loading scripts from .debug_gdb_scripts section.
authorDoug Evans <dje@google.com>
Fri, 23 Apr 2010 18:03:31 +0000 (18:03 +0000)
committerDoug Evans <dje@google.com>
Fri, 23 Apr 2010 18:03:31 +0000 (18:03 +0000)
* 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.

gdb/ChangeLog
gdb/doc/ChangeLog
gdb/testsuite/ChangeLog

index f6f36abf45062171b45bc436b4cb9ba203a871c4..b59013f42667fe5ca027ccaa4f3c61ca27e225de 100644 (file)
@@ -1,3 +1,26 @@
+2010-04-23  Doug Evans  <dje@google.com>
+
+       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.
+
 2010-04-23  Jerome Guitton  <guitton@adacore.com>
     
        * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
index a96ce2f103739c8245ad1990dfe7a622bdf015b2..a97c639ac8b52dcc8a38b4ea9ca4f4eba8d10e35 100644 (file)
@@ -1,3 +1,10 @@
+2010-04-23  Doug Evans  <dje@google.com>
+
+       * 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".
+
 2010-04-20  Chris Moller  <cmoller@redhat.com>
 
        * gdb.texinfo (Setting Breakpoints): Added description of
index b66390742fbbc8b5f445547d7b7619615f697c30..44420494dbb59aa3c1b60c05eac57573acc239fe 100644 (file)
@@ -1,3 +1,9 @@
+2010-04-23  Doug Evans  <dje@google.com>
+
+       * gdb.python/py-section-script.c: New file.
+       * gdb.python/py-section-script.exp: New file.
+       * gdb.python/py-section-script.py: New file.
+
 2010-04-20  Chris Moller  <cmoller@redhat.com>
 
        PR 10179