glib/glib/libglib-gdb.py.in
Matthias Clasen 99332dd27c Avoid shadowing dir builtin
This is the same change that was already applied to the other gdb
script we ship. I had forgotten there was a second one.
2010-12-03 14:41:06 -05:00

11 lines
192 B
Python

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 glib import register
register (gdb.current_objfile ())