[PATCH] Add support for gdb.PYTHONDIR as $gdb_datadir/python.

Joel Brobecker brobecker@adacore.com
Thu Jun 24 22:53:00 GMT 2010


> Joel> 2010-06-24  Joel Brobecker  <brobecker@adacore.com>
> Joel>         * python/python.c (_initialize_python): Add new "constant"
> Joel>         PYTHONDIR in gdb module.  Insert this path at the head of
> Joel>         sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
> Joel>         exec its __init__.py script if it exists in that directory.
> 
> This is fine with me.

Thanks! Following Doug's comments, here is the patch that I just
checked in.

NEWS and docs next.

-- 
Joel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pythondir-commented.diff
Type: text/x-diff
Size: 2502 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20100624/8c8f45e6/attachment.bin>


More information about the Gdb-patches mailing list