Document the GDB python directory.
authorJoel Brobecker <brobecker@gnat.com>
Mon, 28 Jun 2010 19:54:04 +0000 (19:54 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Mon, 28 Jun 2010 19:54:04 +0000 (19:54 +0000)
2010-06-27  Joel Brobecker  <brobecker@adacore.com>

        * NEWS: Add entry announcing the python directory.

2010-06-27  Joel Brobecker  <brobecker@adacore.com>

        * gdb.texinfo (Python): Document what the python directory is
        and what its location is.
        (Basic Python): Document the gdb.PYTHONDIR constant.

gdb/ChangeLog
gdb/NEWS
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo

index bf4f918e5172250bcd6565c16a69c6138e4ec4c5..4341e7209d7e63933142cd51074757d80db63754 100644 (file)
@@ -1,3 +1,7 @@
+2010-06-28  Joel Brobecker  <brobecker@adacore.com>
+
+       * NEWS: Add entry announcing the python directory.
+
 2010-06-28  Tom Tromey  <tromey@redhat.com>
 
        * dwarf2read.c (read_structure_type): Allocate null cleanup later.
index b286f1c0cb625bc6af98312fc14a570aae15c132..17cd3cb4f9e9dc08b6d26a5e98aff8810987d04b 100644 (file)
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -132,6 +132,12 @@ is now deprecated.
 
 * Python scripting
 
+** GDB now provides a new directory location, called the python directory,
+   where Python scripts written for GDB can be installed.  The location
+   of that directory is <data-directory>/python, where <data-directory>
+   is the GDB data directory.  For more details, see section `Scripting
+   GDB using Python' in the manual.
+
 ** The GDB Python API now has access to breakpoints, symbols, symbol
    tables, program spaces, and frame's code blocks.  Additionally, GDB
    Parameters can now be created from the API, and manipulated via
index 47aa02dd4565109a42bfafdf8fbc73ee00d20912..e2130b7f0c55b79a00f0c5e198afc581af006f10 100644 (file)
@@ -1,3 +1,9 @@
+2010-06-28  Joel Brobecker  <brobecker@adacore.com>
+
+       * gdb.texinfo (Python): Document what the python directory is
+       and what its location is.
+       (Basic Python): Document the gdb.PYTHONDIR constant.
+
 2010-06-25  Tom Tromey  <tromey@redhat.com>
 
        PR python/10808:
index 2ea143680017b0729427591fe7638663a9f589cd..aac79f53c09402358306fa46828959b5e6b53131 100644 (file)
@@ -20089,6 +20089,13 @@ You can script @value{GDBN} using the @uref{http://www.python.org/,
 Python programming language}.  This feature is available only if
 @value{GDBN} was configured using @option{--with-python}.
 
+@cindex python directory
+Python scripts used by @value{GDBN} should be installed in
+@file{@var{data-directory}/python}, where @var{data-directory} is
+the data directory as determined at @value{GDBN} startup (@pxref{Data Files}).  This directory, known as the @dfn{python directory},
+is automatically added to the Python Search Path in order to allow
+the Python interpreter to locate all scripts installed at this location.
+
 @menu
 * Python Commands::             Accessing Python from @value{GDBN}.
 * Python API::                  Accessing @value{GDBN} from Python.
@@ -20199,6 +20206,11 @@ methods and classes added by @value{GDBN} are placed in this module.
 @value{GDBN} automatically @code{import}s the @code{gdb} module for
 use in all scripts evaluated by the @code{python} command.
 
+@findex gdb.PYTHONDIR
+@defvar PYTHONDIR
+A string containing the python directory (@pxref{Python}).
+@end defvar
+
 @findex gdb.execute
 @defun execute command [from_tty] [to_string]
 Evaluate @var{command}, a string, as a @value{GDBN} CLI command.
This page took 0.060257 seconds and 4 git commands to generate.