diff options
author | Alexander Larsson <alexl@redhat.com> | 2009-09-18 17:15:32 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2009-09-21 15:39:00 +0200 |
commit | efe9169234e226f594b4254618f35a139338c35f (patch) | |
tree | d2229d2f6b3a8237fe33015b124eed8d8a1d0ad4 /gobject/libgobject-gdb.py.in | |
parent | 18af48ba9a347e2041c4986aaaac73fdd5386de3 (diff) | |
download | glib-efe9169234e226f594b4254618f35a139338c35f.tar.gz |
Initial support for gdb python macros
This includes support for gobject pointer pretty printing and
signal frame compression in backtraces.
https://bugzilla.gnome.org/show_bug.cgi?id=595619
Diffstat (limited to 'gobject/libgobject-gdb.py.in')
-rw-r--r-- | gobject/libgobject-gdb.py.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gobject/libgobject-gdb.py.in b/gobject/libgobject-gdb.py.in new file mode 100644 index 000000000..6ebd0dcc1 --- /dev/null +++ b/gobject/libgobject-gdb.py.in @@ -0,0 +1,10 @@ +import sys +import gdb + +# Update module path. +dir = '@datadir@/glib-2.0/gdb' +if not dir in sys.path: + sys.path.insert(0, dir) + +from gobject import register +register (gdb.current_objfile ()) |