projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d11f413
)
Avoid shadowing dir builtin
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 3 Dec 2010 19:39:59 +0000
(14:39 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 3 Dec 2010 19:41:06 +0000
(14:41 -0500)
This is the same change that was already applied to the other gdb
script we ship. I had forgotten there was a second one.
glib/libglib-gdb.py.in
patch
|
blob
|
history
diff --git
a/glib/libglib-gdb.py.in
b/glib/libglib-gdb.py.in
index
78316be
..
3e07c42
100644
(file)
--- a/
glib/libglib-gdb.py.in
+++ b/
glib/libglib-gdb.py.in
@@
-2,9
+2,9
@@
import sys
import gdb
# Update module path.
-dir = '@datadir@/glib-2.0/gdb'
-if not dir in sys.path:
- sys.path.insert(0, dir)
+dir
_
= '@datadir@/glib-2.0/gdb'
+if not dir
_
in sys.path:
+ sys.path.insert(0, dir
_
)
from glib import register
register (gdb.current_objfile ())