PythonGdb

This page describes the work to integrate Python scripting into Gdb.

Getting the code / Helping

Discussions are going on in the GDB mailing lists, and code for this effort is being held in a git repository hosted by gitorious. You can check out the code with:

$ git clone git://git.gitorious.org/gdb-python/mainline.git
$ cd mainline
$ git checkout --track -b python-revisited origin/python-revisited

{i} The branch is based on Vladimir's git repository, so it contains history not related to this effort. The first commit related to Python work is 710e23e7bd57137a8686d6bc679a739a556afba2.

If you are interested in helping out, and you have an FSF assignment on file, we can set you up with write access.

The development happens in the python-revisited branch, but we also maintain patches which apply to a relatively recent version of CVS HEAD in the python-patches branch. If you prefer to apply the patches instead of just checking out the python-revisited branch, you can extract each of them with:

$ git log -p -n1 <commit id> > a-python-patch.diff

Please note that the patches tend to lag behind a bit and may not reflect the latest changes made to the python-revisited branch.

Things that work

Example code

These are some scripts which work with the current code in the python-revisited branch:

Things we want to work

Big Goals

All content (C) 2008 Free Software Foundation. For terms of use, redistribution, and modification, please see the WikiLicense page.