binutils-gdb/gdb/python
Joel Brobecker b14285f60e Add support for gdb.PYTHONDIR as $gdb_datadir/python.
Python scripts to be used by GDB can be stored in that directory,
and will be automatically found by the interpreter when importing them.
This patch also sets up <gdb_pythondir>/gdb as the directory where gdb
submodules can be stored.  For now, there is nothing there, but it can
now be added easily without further code changes.

gdb/ChangeLog:
2010-06-24  Joel Brobecker  <brobecker@adacore.com>

        * python/python.c (_initialize_python): Add new "constant"
        PYTHONDIR in gdb module.  Insert this path at the head of
        sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
        exec its __init__.py script if it exists in that directory.
2010-06-24 22:52:04 +00:00
..
py-auto-load.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-block.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-breakpoint.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-cmd.c Add python gdb.GdbError and gdb.string_to_argv. 2010-05-25 15:27:17 +00:00
py-frame.c 2010-05-07 Michael Snyder <msnyder@vmware.com> 2010-05-07 19:26:30 +00:00
py-function.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-lazy-string.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-objfile.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-param.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-prettyprint.c gdb 2010-06-11 15:36:10 +00:00
py-progspace.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-symbol.c 2010-02-24 Phil Muldoon <pmuldoon@redhat.com> 2010-02-24 21:18:28 +00:00
py-symtab.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-type.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-utils.c Add python gdb.GdbError and gdb.string_to_argv. 2010-05-25 15:27:17 +00:00
py-value.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
python-config.py * configure.ac: Try to use python's distutils to fetch compilation 2010-05-27 01:36:22 +00:00
python-internal.h Add support for enabling/disabling individual pretty-printers. 2010-06-04 18:18:28 +00:00
python.c Add support for gdb.PYTHONDIR as $gdb_datadir/python. 2010-06-24 22:52:04 +00:00
python.h gdb 2010-06-11 15:36:10 +00:00