diff options
author | Tom Tromey <tom@tromey.com> | 2016-05-23 10:45:55 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2016-05-23 10:52:10 -0400 |
commit | b7145a1d7227c7ddfea8051bef5d2e8a6301ad42 (patch) | |
tree | 685821463b986dcc06d2f54b564870c34d578cf7 /gobject/libgobject-gdb.py.in | |
parent | 0ffb21d355bde6ac11e7871dc0bf79009a6471c3 (diff) | |
download | glib-b7145a1d7227c7ddfea8051bef5d2e8a6301ad42.tar.gz |
Rename gdb macros with `_gdb` suffix to avoid ns clashes
glib installs a gdb helper file named `glib.py`.
Then the "hook" file updates `sys.path` and does `import glib`.
This will fail if glib has already been imported into gdb, say
using `from gi.repository import GLib`. This is due to a namespace clash.
One fix would be to rename the gdb helper files to not clash with
other Python modules. This should be done for all such helper files.
https://bugzilla.gnome.org/show_bug.cgi?id=760186
Diffstat (limited to 'gobject/libgobject-gdb.py.in')
-rw-r--r-- | gobject/libgobject-gdb.py.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gobject/libgobject-gdb.py.in b/gobject/libgobject-gdb.py.in index fbd4879e1..e8b9dee34 100644 --- a/gobject/libgobject-gdb.py.in +++ b/gobject/libgobject-gdb.py.in @@ -6,5 +6,5 @@ dir_ = '@datadir@/glib-2.0/gdb' if not dir_ in sys.path: sys.path.insert(0, dir_) -from gobject import register +from gobject_gdb import register register (gdb.current_objfile ()) |